Mercurial > geeqie
diff src/preferences.c @ 1272:e0e12512cde2
read external editors from .desktop files
author | nadvornik |
---|---|
date | Sun, 01 Feb 2009 12:48:14 +0000 |
parents | b2d98b7c26c1 |
children | 8b89e3ff286b |
line wrap: on
line diff
--- a/src/preferences.c Thu Jan 29 19:43:34 2009 +0000 +++ b/src/preferences.c Sun Feb 01 12:48:14 2009 +0000 @@ -99,8 +99,6 @@ static GtkWidget *startup_path_entry; static GtkWidget *home_path_entry; static GtkListStore *filter_store = NULL; -static GtkWidget *editor_name_entry[GQ_EDITOR_SLOTS]; -static GtkWidget *editor_command_entry[GQ_EDITOR_SLOTS]; static GtkWidget *layout_widget; @@ -177,6 +175,7 @@ } } +#if 0 static void config_parse_editor_entries(GtkWidget **editor_name_entry, GtkWidget **editor_command_entry) { gint i; @@ -223,7 +222,7 @@ g_string_free(errmsg, TRUE); } - +#endif static void config_window_apply(void) { @@ -231,8 +230,8 @@ gint i; gint refresh = FALSE; - config_parse_editor_entries(editor_name_entry, editor_command_entry); - layout_edit_update_all(); +// config_parse_editor_entries(editor_name_entry, editor_command_entry); +// layout_edit_update_all(); config_entry_to_option(safe_delete_path_entry, &options->file_ops.safe_delete_path, remove_trailing_slash); @@ -874,6 +873,7 @@ !gtk_toggle_button_get_active(GTK_TOGGLE_BUTTON(widget))); } +#if 0 static void editor_default_ok_cb(GenericDialog *gd, gpointer data) { gint i; @@ -908,6 +908,7 @@ { help_window_show("editors"); } +#endif static void safe_delete_view_cb(GtkWidget *widget, gpointer data) { @@ -1389,7 +1390,7 @@ gtk_box_pack_end(GTK_BOX(hbox), button, FALSE, FALSE, 0); gtk_widget_show(button); } - +#if 0 /* editors tab */ static void config_tab_editors(GtkWidget *notebook) { @@ -1466,6 +1467,7 @@ gtk_box_pack_end(GTK_BOX(hbox), button, FALSE, FALSE, 0); gtk_widget_show(button); } +#endif /* properties tab */ static void config_tab_properties(GtkWidget *notebook) @@ -1756,7 +1758,7 @@ entry = gtk_entry_new(); gtk_entry_set_max_length(GTK_ENTRY(entry), EDITOR_NAME_MAX_LENGTH); - gtk_widget_set_size_request(editor_name_entry[i], 30, -1); +// gtk_widget_set_size_request(editor_name_entry[i], 30, -1); if (options->color_profile.input_name[i]) { gtk_entry_set_text(GTK_ENTRY(entry), options->color_profile.input_name[i]); @@ -1862,7 +1864,7 @@ config_tab_image(notebook); config_tab_windows(notebook); config_tab_filtering(notebook); - config_tab_editors(notebook); +// config_tab_editors(notebook); config_tab_properties(notebook); config_tab_advanced(notebook);