comparison src/bar_exif.c @ 442:4b2d7f9af171

Big whitespaces cleanup: - drop whitespaces at end of lines - convert eight spaces to tab at start of lines - drop spurious spaces mixed with tabs - remove empty lines at end of files
author zas_
date Sun, 20 Apr 2008 13:04:57 +0000
parents eff049b3d308
children ddabc4873a3f
comparison
equal deleted inserted replaced
441:08eb7137cd94 442:4b2d7f9af171
56 * table util 56 * table util
57 *------------------------------------------------------------------- 57 *-------------------------------------------------------------------
58 */ 58 */
59 59
60 static void table_add_line_custom(GtkWidget *table, gint x, gint y, 60 static void table_add_line_custom(GtkWidget *table, gint x, gint y,
61 const gchar *text1, const gchar *text2, 61 const gchar *text1, const gchar *text2,
62 GtkWidget **label1, GtkWidget **label2) 62 GtkWidget **label1, GtkWidget **label2)
63 { 63 {
64 GtkWidget *label; 64 GtkWidget *label;
65 gchar *buf; 65 gchar *buf;
66 66
67 buf = g_strconcat((text1) ? text1 : "fixme", ":", NULL); 67 buf = g_strconcat((text1) ? text1 : "fixme", ":", NULL);
201 } 201 }
202 text = exif_get_data_as_text(exif, ExifUIList[i].key); 202 text = exif_get_data_as_text(exif, ExifUIList[i].key);
203 text = bar_exif_validate_text(text); 203 text = bar_exif_validate_text(text);
204 if (ExifUIList[i].current == EXIF_UI_IFSET 204 if (ExifUIList[i].current == EXIF_UI_IFSET
205 && (!text || !*text)) 205 && (!text || !*text))
206 { 206 {
207 gtk_widget_hide(eb->labels[i]); 207 gtk_widget_hide(eb->labels[i]);
208 gtk_widget_hide(eb->keys[i]); 208 gtk_widget_hide(eb->keys[i]);
209 continue; 209 continue;
210 } 210 }
211 gtk_widget_show(eb->labels[i]); 211 gtk_widget_show(eb->labels[i]);
258 if (eb->advanced_scrolled && GTK_WIDGET_VISIBLE(eb->advanced_scrolled)) 258 if (eb->advanced_scrolled && GTK_WIDGET_VISIBLE(eb->advanced_scrolled))
259 { 259 {
260 GtkListStore *store; 260 GtkListStore *store;
261 GtkTreeIter iter; 261 GtkTreeIter iter;
262 ExifItem *item; 262 ExifItem *item;
263 263
264 store = GTK_LIST_STORE(gtk_tree_view_get_model(GTK_TREE_VIEW(eb->listview))); 264 store = GTK_LIST_STORE(gtk_tree_view_get_model(GTK_TREE_VIEW(eb->listview)));
265 gtk_list_store_clear(store); 265 gtk_list_store_clear(store);
266 266
267 item = exif_get_first_item(exif); 267 item = exif_get_first_item(exif);
268 while (item) 268 while (item)
620 for (i = 0; ExifUIList[i].key; i++) 620 for (i = 0; ExifUIList[i].key; i++)
621 { 621 {
622 const gchar *text; 622 const gchar *text;
623 623
624 text = exif_get_description_by_key(ExifUIList[i].key); 624 text = exif_get_description_by_key(ExifUIList[i].key);
625 eb->labels[i] = table_add_line(table, 0, i, text, NULL, 625 eb->labels[i] = table_add_line(table, 0, i, text, NULL,
626 &eb->keys[i]); 626 &eb->keys[i]);
627 } 627 }
628 628
629 eb->custom_sep = gtk_hseparator_new(); 629 eb->custom_sep = gtk_hseparator_new();
630 gtk_table_attach(GTK_TABLE(table), eb->custom_sep, 0, 1, 630 gtk_table_attach(GTK_TABLE(table), eb->custom_sep, 0, 1,