comparison src/bar_histogram.c @ 1471:65a5c27823c2

update translated pane titles
author nadvornik
date Sat, 21 Mar 2009 17:47:50 +0000
parents 607c60506863
children aec6992e5116
comparison
equal deleted inserted replaced
1470:38925ff71a46 1471:65a5c27823c2
377 return phd->widget; 377 return phd->widget;
378 } 378 }
379 379
380 GtkWidget *bar_pane_histogram_new_from_config(const gchar **attribute_names, const gchar **attribute_values) 380 GtkWidget *bar_pane_histogram_new_from_config(const gchar **attribute_names, const gchar **attribute_values)
381 { 381 {
382 gchar *title = g_strdup(_("NoName")); 382 gchar *title = NULL;
383 gchar *id = g_strdup("histogram"); 383 gchar *id = g_strdup("histogram");
384 gboolean expanded = TRUE; 384 gboolean expanded = TRUE;
385 gint height = 80; 385 gint height = 80;
386 gint histogram_channel = HCHAN_RGB; 386 gint histogram_channel = HCHAN_RGB;
387 gint histogram_mode = 0; 387 gint histogram_mode = 0;
399 if (READ_INT_FULL("histogram_mode", histogram_mode)) continue; 399 if (READ_INT_FULL("histogram_mode", histogram_mode)) continue;
400 400
401 log_printf("unknown attribute %s = %s\n", option, value); 401 log_printf("unknown attribute %s = %s\n", option, value);
402 } 402 }
403 403
404 bar_pane_translate_title(PANE_HISTOGRAM, id, &title);
404 ret = bar_pane_histogram_new(id, title, height, expanded, histogram_channel, histogram_mode); 405 ret = bar_pane_histogram_new(id, title, height, expanded, histogram_channel, histogram_mode);
405 g_free(title); 406 g_free(title);
406 g_free(id); 407 g_free(id);
407 return ret; 408 return ret;
408 } 409 }