Skip to content
Snippets Groups Projects
Commit a7fa0f35 authored by Tom Greig's avatar Tom Greig
Browse files

Use inscription, not label, for input paths

Inscriptions allow me to specify that they should add ellipses at the
beginning when there's not enough space.
parent 570c32de
Branches
Tags
No related merge requests found
...@@ -627,8 +627,10 @@ static void file_factory_setup_callback( ...@@ -627,8 +627,10 @@ static void file_factory_setup_callback(
(void) factory; (void) factory;
GtkWidget* file_label = gtk_label_new( "" ); GtkWidget* file_label = gtk_inscription_new( "" );
gtk_list_item_set_child( list_item, file_label ); gtk_list_item_set_child( list_item, file_label );
gtk_inscription_set_text_overflow( GTK_INSCRIPTION( file_label ),
GTK_INSCRIPTION_OVERFLOW_ELLIPSIZE_START );
} }
...@@ -639,7 +641,7 @@ static void file_factory_bind_callback( ...@@ -639,7 +641,7 @@ static void file_factory_bind_callback(
GtkWidget* file_label = gtk_list_item_get_child( list_item ); GtkWidget* file_label = gtk_list_item_get_child( list_item );
Input* input = gtk_list_item_get_item( list_item ); Input* input = gtk_list_item_get_item( list_item );
gtk_label_set_text( GTK_LABEL( file_label ), gtk_inscription_set_text( GTK_INSCRIPTION( file_label ),
input->input->source->file_path ); input->input->source->file_path );
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment