summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorinfirit <[email protected]>2015-07-22 16:58:27 +0200
committerinfirit <[email protected]>2015-07-22 17:58:34 +0200
commita0870e4657598a0056d43a29292d1249fc23c7a2 (patch)
treedbb54fc0ff7d34f20ff0f93a8e65611109367240
parent348a70188ac547fdbbf9f2663641e7cf90098487 (diff)
downloadmate-notification-daemon-a0870e4657598a0056d43a29292d1249fc23c7a2.tar.bz2
mate-notification-daemon-a0870e4657598a0056d43a29292d1249fc23c7a2.tar.xz
nodoka: Also set wrap mode for Gtk2
Rids us of some GTK_CHECK_VERSION
-rw-r--r--src/themes/nodoka/nodoka-theme.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/src/themes/nodoka/nodoka-theme.c b/src/themes/nodoka/nodoka-theme.c
index 64a6848..9bd96ab 100644
--- a/src/themes/nodoka/nodoka-theme.c
+++ b/src/themes/nodoka/nodoka-theme.c
@@ -832,9 +832,7 @@ create_notification(UrlClickedCb url_clicked)
gtk_misc_set_alignment(GTK_MISC(windata->summary_label), 0, 0);
#endif
gtk_label_set_line_wrap(GTK_LABEL(windata->summary_label), TRUE);
-#if GTK_CHECK_VERSION (3, 0, 0)
gtk_label_set_line_wrap_mode (GTK_LABEL (windata->summary_label), PANGO_WRAP_WORD_CHAR);
-#endif
atkobj = gtk_widget_get_accessible(windata->summary_label);
atk_object_set_description(atkobj, "Notification summary text.");
@@ -891,9 +889,8 @@ create_notification(UrlClickedCb url_clicked)
gtk_misc_set_alignment(GTK_MISC(windata->body_label), 0, 0);
#endif
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);
-#endif
+
g_signal_connect(G_OBJECT(windata->body_label), "activate-link",
G_CALLBACK(activate_link), windata);