ocarina: Tab label improvements
- Respond to the renamed() callback - Right-align / justify labels Signed-off-by: Bryan Schumaker <bjschuma@gmail.com>
This commit is contained in:
parent
a91713dbfd
commit
6214136ee3
|
@ -29,6 +29,7 @@ namespace ocarina
|
|||
void list_selected_tracks(list<libsaria::Track *> &);
|
||||
|
||||
void set_playlist(libsaria::Playlist *);
|
||||
void renamed(string &);
|
||||
void prepare_for_removal();
|
||||
|
||||
void goto_index(unsigned int);
|
||||
|
|
|
@ -95,7 +95,8 @@ namespace ocarina
|
|||
label = gtk_label_new("");
|
||||
box = gtk_vbox_new(FALSE, 0);
|
||||
|
||||
gtk_label_set_justify(GTK_LABEL(label), GTK_JUSTIFY_CENTER);
|
||||
gtk_label_set_justify(GTK_LABEL(label), GTK_JUSTIFY_RIGHT);
|
||||
gtk_misc_set_alignment(GTK_MISC(label), 1.0, 0.0);
|
||||
setup_treeview();
|
||||
|
||||
gtk_widget_show(label);
|
||||
|
@ -105,6 +106,11 @@ namespace ocarina
|
|||
body::push_page(box, label);
|
||||
}
|
||||
|
||||
void Playlist::renamed(string &s)
|
||||
{
|
||||
set_label_text();
|
||||
}
|
||||
|
||||
void Playlist::prepare_for_removal()
|
||||
{
|
||||
body::remove_page(box);
|
||||
|
|
Loading…
Reference in New Issue