Mercurial > geeqie.yaz
comparison src/preferences.c @ 1663:ae0b1f854f22
cleanup: remove some disabled code
author | nadvornik |
---|---|
date | Sun, 28 Jun 2009 09:25:47 +0000 |
parents | d7e07c7fa31b |
children | de25b265ab64 |
comparison
equal
deleted
inserted
replaced
1662:7a4034d32503 | 1663:ae0b1f854f22 |
---|---|
166 else | 166 else |
167 *option = g_strdup(buf); | 167 *option = g_strdup(buf); |
168 } | 168 } |
169 } | 169 } |
170 | 170 |
171 #if 0 | |
172 static void config_parse_editor_entries(GtkWidget **editor_name_entry, GtkWidget **editor_command_entry) | |
173 { | |
174 gint i; | |
175 const gchar *buf; | |
176 GString *errmsg = g_string_new(""); | |
177 | |
178 for (i = 0; i < GQ_EDITOR_SLOTS; i++) | |
179 { | |
180 gchar *command = NULL; | |
181 | |
182 if (i < GQ_EDITOR_GENERIC_SLOTS) | |
183 { | |
184 gchar *name = NULL; | |
185 | |
186 buf = gtk_entry_get_text(GTK_ENTRY(editor_name_entry[i])); | |
187 if (buf && strlen(buf) > 0) name = g_strdup(buf); | |
188 editor_set_name(i, name); | |
189 g_free(name); | |
190 } | |
191 | |
192 buf = gtk_entry_get_text(GTK_ENTRY(editor_command_entry[i])); | |
193 if (buf && strlen(buf) > 0) | |
194 { | |
195 gint flags = editor_command_parse(buf, NULL, NULL); | |
196 | |
197 if (EDITOR_ERRORS(flags)) | |
198 { | |
199 if (errmsg->str[0]) g_string_append(errmsg, "\n\n"); | |
200 g_string_append_printf(errmsg, _("%s\n#%d \"%s\":\n%s"), editor_get_error_str(flags), | |
201 i+1, options->editor[i].name, buf); | |
202 | |
203 } | |
204 command = g_strdup(buf); | |
205 } | |
206 | |
207 editor_set_command(i, command); | |
208 g_free(command); | |
209 } | |
210 | |
211 if (errmsg->str[0]) | |
212 { | |
213 file_util_warning_dialog(_("Invalid editor command"), errmsg->str, GTK_STOCK_DIALOG_ERROR, NULL); | |
214 } | |
215 | |
216 g_string_free(errmsg, TRUE); | |
217 } | |
218 #endif | |
219 | 171 |
220 static gboolean accel_apply_cb(GtkTreeModel *model, GtkTreePath *path, GtkTreeIter *iter, gpointer data) | 172 static gboolean accel_apply_cb(GtkTreeModel *model, GtkTreePath *path, GtkTreeIter *iter, gpointer data) |
221 { | 173 { |
222 gchar *accel_path, *accel; | 174 gchar *accel_path, *accel; |
223 | 175 |
239 | 191 |
240 static void config_window_apply(void) | 192 static void config_window_apply(void) |
241 { | 193 { |
242 gint i; | 194 gint i; |
243 gboolean refresh = FALSE; | 195 gboolean refresh = FALSE; |
244 | |
245 // config_parse_editor_entries(editor_name_entry, editor_command_entry); | |
246 // layout_edit_update_all(); | |
247 | 196 |
248 config_entry_to_option(safe_delete_path_entry, &options->file_ops.safe_delete_path, remove_trailing_slash); | 197 config_entry_to_option(safe_delete_path_entry, &options->file_ops.safe_delete_path, remove_trailing_slash); |
249 | 198 |
250 if (options->file_filter.show_hidden_files != c_options->file_filter.show_hidden_files) refresh = TRUE; | 199 if (options->file_filter.show_hidden_files != c_options->file_filter.show_hidden_files) refresh = TRUE; |
251 if (options->file_filter.show_dot_directory != c_options->file_filter.show_dot_directory) refresh = TRUE; | 200 if (options->file_filter.show_dot_directory != c_options->file_filter.show_dot_directory) refresh = TRUE; |