comparison src/layout_util.c @ 1678:1e3bbaa772b9

cleanup: remove some disabled code
author nadvornik
date Sun, 28 Jun 2009 09:25:47 +0000
parents d27275bc008a
children d9a53661cc73
comparison
equal deleted inserted replaced
1677:c5c7e19fbb23 1678:1e3bbaa772b9
1064 layout_exit_fullscreen(lw); 1064 layout_exit_fullscreen(lw);
1065 1065
1066 file_util_start_editor_from_filelist(key, layout_selection_list(lw), layout_get_path(lw), lw->window); 1066 file_util_start_editor_from_filelist(key, layout_selection_list(lw), layout_get_path(lw), lw->window);
1067 } 1067 }
1068 1068
1069 #if 0
1070 static void layout_menu_edit_update(LayoutWindow *lw)
1071 {
1072 gint i;
1073
1074 /* main edit menu */
1075
1076 if (!lw->action_group) return;
1077
1078 for (i = 0; i < GQ_EDITOR_GENERIC_SLOTS; i++)
1079 {
1080 gchar *key;
1081 GtkAction *action;
1082 const gchar *name;
1083
1084 key = g_strdup_printf("Editor%d", i);
1085
1086 action = gtk_action_group_get_action(lw->action_group, key);
1087 g_object_set_data(G_OBJECT(action), "edit_index", GINT_TO_POINTER(i));
1088
1089 name = editor_get_name(i);
1090 if (name)
1091 {
1092 gchar *text = g_strdup_printf(_("_%d %s..."), i, name);
1093
1094 g_object_set(action, "label", text,
1095 "sensitive", TRUE, NULL);
1096 g_free(text);
1097 }
1098 else
1099 {
1100 gchar *text;
1101
1102 text = g_strdup_printf(_("_%d empty"), i);
1103 g_object_set(action, "label", text, "sensitive", FALSE, NULL);
1104 g_free(text);
1105 }
1106
1107 g_free(key);
1108 }
1109 }
1110
1111 void layout_edit_update_all(void)
1112 {
1113 GList *work;
1114
1115 work = layout_window_list;
1116 while (work)
1117 {
1118 LayoutWindow *lw = work->data;
1119 work = work->next;
1120
1121 layout_menu_edit_update(lw);
1122 }
1123 }
1124
1125 #endif
1126 1069
1127 static void layout_menu_metadata_write_cb(GtkAction *action, gpointer data) 1070 static void layout_menu_metadata_write_cb(GtkAction *action, gpointer data)
1128 { 1071 {
1129 metadata_write_queue_confirm(TRUE, NULL, NULL); 1072 metadata_write_queue_confirm(TRUE, NULL, NULL);
1130 } 1073 }