Skip to content

Commit

Permalink
In the side bar, display the filename without the 'Filename:' prefix …
Browse files Browse the repository at this point in the history
…and makes it centered. Allow to select it for copy'n'paste.
  • Loading branch information
Laurent Monin committed Mar 1, 2009
1 parent 86e5ece commit 138449b
Showing 1 changed file with 2 additions and 8 deletions.
10 changes: 2 additions & 8 deletions src/bar.c
Original file line number Diff line number Diff line change
Expand Up @@ -332,7 +332,6 @@ GtkWidget *bar_new(GtkWidget *bounding_widget)
BarData *bd;
GtkWidget *box;
GtkWidget *sizer;
GtkWidget *label;
GtkWidget *button;
GtkWidget *arrow;
GtkWidget *scrolled;
Expand All @@ -357,14 +356,9 @@ GtkWidget *bar_new(GtkWidget *bounding_widget)
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);

Expand Down

0 comments on commit 138449b

Please sign in to comment.