summaryrefslogtreecommitdiff
path: root/src/themes
diff options
context:
space:
mode:
Diffstat (limited to 'src/themes')
-rw-r--r--src/themes/coco/coco-theme.c3
-rw-r--r--src/themes/nodoka/nodoka-theme.c3
-rw-r--r--src/themes/slider/theme.c1
-rw-r--r--src/themes/standard/theme.c1
4 files changed, 8 insertions, 0 deletions
diff --git a/src/themes/coco/coco-theme.c b/src/themes/coco/coco-theme.c
index debc8cd..07a306f 100644
--- a/src/themes/coco/coco-theme.c
+++ b/src/themes/coco/coco-theme.c
@@ -586,6 +586,9 @@ create_notification(UrlClickedCb url_clicked)
#endif
gtk_label_set_line_wrap(GTK_LABEL(windata->body_label), TRUE);
gtk_label_set_line_wrap_mode (GTK_LABEL (windata->body_label), PANGO_WRAP_WORD_CHAR);
+#if GTK_CHECK_VERSION (3, 0, 0)
+ gtk_label_set_max_width_chars (GTK_LABEL (windata->body_label), 50);
+#endif
g_signal_connect(G_OBJECT(windata->body_label), "activate-link",
G_CALLBACK(activate_link), windata);
diff --git a/src/themes/nodoka/nodoka-theme.c b/src/themes/nodoka/nodoka-theme.c
index 9f6d9ac..3be3293 100644
--- a/src/themes/nodoka/nodoka-theme.c
+++ b/src/themes/nodoka/nodoka-theme.c
@@ -980,6 +980,9 @@ create_notification(UrlClickedCb url_clicked)
#endif
gtk_label_set_line_wrap(GTK_LABEL(windata->body_label), TRUE);
gtk_label_set_line_wrap_mode (GTK_LABEL (windata->body_label), PANGO_WRAP_WORD_CHAR);
+#if GTK_CHECK_VERSION (3, 0, 0)
+ gtk_label_set_max_width_chars (GTK_LABEL (windata->body_label), 50);
+#endif
g_signal_connect(G_OBJECT(windata->body_label), "activate-link",
G_CALLBACK(activate_link), windata);
diff --git a/src/themes/slider/theme.c b/src/themes/slider/theme.c
index 623d4f8..5c38126 100644
--- a/src/themes/slider/theme.c
+++ b/src/themes/slider/theme.c
@@ -774,6 +774,7 @@ GtkWindow* create_notification(UrlClickedCb url_clicked)
gtk_label_set_line_wrap(GTK_LABEL(windata->body_label), TRUE);
#if GTK_CHECK_VERSION (3, 0, 0)
gtk_label_set_line_wrap_mode (GTK_LABEL (windata->body_label), PANGO_WRAP_WORD_CHAR);
+ gtk_label_set_max_width_chars (GTK_LABEL (windata->body_label), 50);
#endif
g_signal_connect_swapped(G_OBJECT(windata->body_label), "activate-link", G_CALLBACK(windata->url_clicked), win);
diff --git a/src/themes/standard/theme.c b/src/themes/standard/theme.c
index 2f9fb78..d8c2015 100644
--- a/src/themes/standard/theme.c
+++ b/src/themes/standard/theme.c
@@ -815,6 +815,7 @@ GtkWindow* create_notification(UrlClickedCb url_clicked)
gtk_label_set_line_wrap(GTK_LABEL(windata->body_label), TRUE);
#if GTK_CHECK_VERSION (3, 0, 0)
gtk_label_set_line_wrap_mode (GTK_LABEL (windata->body_label), PANGO_WRAP_WORD_CHAR);
+ gtk_label_set_max_width_chars (GTK_LABEL (windata->body_label), 50);
#endif
g_signal_connect(G_OBJECT(windata->body_label), "activate-link", G_CALLBACK(activate_link), windata);