Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 4 additions & 3 deletions girara/session.c
Original file line number Diff line number Diff line change
Expand Up @@ -300,8 +300,9 @@ girara_session_t* girara_session_create(void) {

/* make notification text selectable */
gtk_label_set_selectable(GTK_LABEL(session->gtk.notification_text), TRUE);
/* ellipsize notification text */
gtk_label_set_ellipsize(GTK_LABEL(session->gtk.notification_text), PANGO_ELLIPSIZE_END);
/* wrap notification text */
gtk_label_set_line_wrap(GTK_LABEL(session->gtk.notification_text), TRUE);
gtk_label_set_line_wrap_mode(GTK_LABEL(session->gtk.notification_text), PANGO_WRAP_WORD_CHAR);

return session;
}
Expand Down Expand Up @@ -403,7 +404,7 @@ bool girara_session_init(girara_session_t* session, const char* sessionname) {

/* notification area */
gtk_container_add(GTK_CONTAINER(session->gtk.notification_area), session->gtk.notification_text);
gtk_widget_set_halign(session->gtk.notification_text, GTK_ALIGN_START);
gtk_label_set_xalign(GTK_LABEL(session->gtk.notification_text), 0.0);
gtk_widget_set_valign(session->gtk.notification_text, GTK_ALIGN_CENTER);
gtk_label_set_use_markup(GTK_LABEL(session->gtk.notification_text), TRUE);

Expand Down