changeset 1354:d5fec01ce866

In the side bar, display the filename without the 'Filename:' prefix and makes it centered. Allow to select it for copy'n'paste.
author zas_
date Sun, 01 Mar 2009 15:15:37 +0000
parents 77c3d9dcd6bc
children 5a61fb9adc05
files src/bar.c
diffstat 1 files changed, 2 insertions(+), 8 deletions(-) [+]
line wrap: on
line diff
--- a/src/bar.c	Sun Mar 01 13:37:30 2009 +0000
+++ b/src/bar.c	Sun Mar 01 15:15:37 2009 +0000
@@ -332,7 +332,6 @@
 	BarData *bd;
 	GtkWidget *box;
 	GtkWidget *sizer;
-	GtkWidget *label;
 	GtkWidget *button;
 	GtkWidget *arrow;
 	GtkWidget *scrolled;
@@ -357,14 +356,9 @@
 	gtk_box_pack_start(GTK_BOX(box), sizer, FALSE, FALSE, 0);
 	gtk_widget_show(sizer);
 
-	label = gtk_label_new(_("Filename:"));
-	gtk_misc_set_alignment(GTK_MISC(label), 1.0, 0.0);
-	gtk_box_pack_start(GTK_BOX(box), label, TRUE, TRUE, 0);
-	gtk_widget_show(label);
-
 	bd->label_file_name = gtk_label_new("");
-	pref_label_bold(bd->label_file_name, TRUE, FALSE);
-	gtk_misc_set_alignment(GTK_MISC(bd->label_file_name), 0.0, 0.0);
+	gtk_label_set_selectable(GTK_LABEL(bd->label_file_name), TRUE);
+	gtk_misc_set_alignment(GTK_MISC(bd->label_file_name), 0.5, 0.5);
 	gtk_box_pack_start(GTK_BOX(box), bd->label_file_name, TRUE, TRUE, 0);
 	gtk_widget_show(bd->label_file_name);