Mercurial > geeqie.yaz
comparison src/bar_exif.c @ 1369:dc1768a8af01
Align exif labels vertically (visually better since name is now smaller than value).
author | zas_ |
---|---|
date | Sun, 01 Mar 2009 23:38:36 +0000 |
parents | ff3cd67235af |
children | 27ba259d3496 |
comparison
equal
deleted
inserted
replaced
1368:bbd3a85a0534 | 1369:dc1768a8af01 |
---|---|
93 g_object_set_data(G_OBJECT(ee->hbox), "entry_data", ee); | 93 g_object_set_data(G_OBJECT(ee->hbox), "entry_data", ee); |
94 g_signal_connect_after(G_OBJECT(ee->hbox), "destroy", | 94 g_signal_connect_after(G_OBJECT(ee->hbox), "destroy", |
95 G_CALLBACK(bar_pane_exif_entry_destroy), ee); | 95 G_CALLBACK(bar_pane_exif_entry_destroy), ee); |
96 | 96 |
97 ee->title_label = gtk_label_new(NULL); | 97 ee->title_label = gtk_label_new(NULL); |
98 gtk_misc_set_alignment(GTK_MISC(ee->title_label), 1.0, 0.0); | 98 gtk_misc_set_alignment(GTK_MISC(ee->title_label), 1.0, 0.5); |
99 gtk_size_group_add_widget(ped->size_group, ee->title_label); | 99 gtk_size_group_add_widget(ped->size_group, ee->title_label); |
100 gtk_box_pack_start(GTK_BOX(ee->hbox), ee->title_label, FALSE, TRUE, 0); | 100 gtk_box_pack_start(GTK_BOX(ee->hbox), ee->title_label, FALSE, TRUE, 0); |
101 gtk_widget_show(ee->title_label); | 101 gtk_widget_show(ee->title_label); |
102 | 102 |
103 ee->value_label = gtk_label_new(NULL); | 103 ee->value_label = gtk_label_new(NULL); |
104 // gtk_label_set_width_chars(GTK_LABEL(ee->value_label), 20); | 104 // gtk_label_set_width_chars(GTK_LABEL(ee->value_label), 20); |
105 gtk_label_set_ellipsize(GTK_LABEL(ee->value_label), PANGO_ELLIPSIZE_END); | 105 gtk_label_set_ellipsize(GTK_LABEL(ee->value_label), PANGO_ELLIPSIZE_END); |
106 // gtk_widget_set_size_request(ee->value_label, 100, -1); | 106 // gtk_widget_set_size_request(ee->value_label, 100, -1); |
107 gtk_misc_set_alignment(GTK_MISC(ee->value_label), 0.0, 0.0); | 107 gtk_misc_set_alignment(GTK_MISC(ee->value_label), 0.0, 0.5); |
108 gtk_box_pack_start(GTK_BOX(ee->hbox), ee->value_label, TRUE, TRUE, 1); | 108 gtk_box_pack_start(GTK_BOX(ee->hbox), ee->value_label, TRUE, TRUE, 1); |
109 gtk_widget_show(ee->value_label); | 109 gtk_widget_show(ee->value_label); |
110 | 110 |
111 gtk_box_pack_start(GTK_BOX(ped->vbox), ee->hbox, TRUE, TRUE, 0); | 111 gtk_box_pack_start(GTK_BOX(ped->vbox), ee->hbox, TRUE, TRUE, 0); |
112 bar_pane_exif_update_entry(ped, ee->hbox, TRUE); | 112 bar_pane_exif_update_entry(ped, ee->hbox, TRUE); |