diff options
author | monsta <[email protected]> | 2018-01-28 20:16:44 +0300 |
---|---|---|
committer | raveit65 <[email protected]> | 2018-01-30 09:09:33 +0100 |
commit | bc42c561e29041c168b806a5618580066aa8a222 (patch) | |
tree | d5889961598cb89dc7231b4fbbdc0266c01bc1c0 /src/themes/coco/coco-theme.c | |
parent | 4a4687f22d854e5d4736830f513c577439e42151 (diff) | |
download | mate-notification-daemon-bc42c561e29041c168b806a5618580066aa8a222.tar.bz2 mate-notification-daemon-bc42c561e29041c168b806a5618580066aa8a222.tar.xz |
require GTK+ 3.22 and GLib 2.50
and drop additional checks for min/max GLib versions, it's not needed
Diffstat (limited to 'src/themes/coco/coco-theme.c')
-rw-r--r-- | src/themes/coco/coco-theme.c | 12 |
1 files changed, 0 insertions, 12 deletions
diff --git a/src/themes/coco/coco-theme.c b/src/themes/coco/coco-theme.c index 52d542c..2401e6c 100644 --- a/src/themes/coco/coco-theme.c +++ b/src/themes/coco/coco-theme.c @@ -453,12 +453,8 @@ create_notification(UrlClickedCb url_clicked) windata->summary_label = gtk_label_new(NULL); gtk_widget_show(windata->summary_label); gtk_box_pack_start(GTK_BOX(vbox), windata->summary_label, FALSE, FALSE, 0); -#if GTK_CHECK_VERSION (3, 16, 0) gtk_label_set_xalign (GTK_LABEL (windata->summary_label), 0.0); gtk_label_set_yalign (GTK_LABEL (windata->summary_label), 0.0); -#else - gtk_misc_set_alignment(GTK_MISC(windata->summary_label), 0.0, 0.0); -#endif gtk_label_set_line_wrap(GTK_LABEL(windata->summary_label), TRUE); gtk_label_set_line_wrap_mode (GTK_LABEL (windata->summary_label), PANGO_WRAP_WORD_CHAR); @@ -467,12 +463,8 @@ create_notification(UrlClickedCb url_clicked) windata->body_label = gtk_label_new(NULL); gtk_box_pack_start(GTK_BOX(vbox), windata->body_label, FALSE, FALSE, 0); -#if GTK_CHECK_VERSION (3, 16, 0) gtk_label_set_xalign (GTK_LABEL (windata->body_label), 0.0); gtk_label_set_yalign (GTK_LABEL (windata->body_label), 0.0); -#else - gtk_misc_set_alignment(GTK_MISC(windata->body_label), 0.0, 0.0); -#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); gtk_label_set_max_width_chars (GTK_LABEL (windata->body_label), 50); @@ -623,12 +615,8 @@ add_notification_action(GtkWindow *nw, const char *text, const char *key, label = gtk_label_new(NULL); gtk_widget_show(label); gtk_box_pack_start(GTK_BOX(hbox), label, FALSE, FALSE, 0); -#if GTK_CHECK_VERSION (3, 16, 0) gtk_label_set_xalign (GTK_LABEL (label), 0.0); gtk_label_set_yalign (GTK_LABEL (label), 0.5); -#else - gtk_misc_set_alignment(GTK_MISC(label), 0.0, 0.5); -#endif buf = g_strdup_printf("<small>%s</small>", text); gtk_label_set_markup(GTK_LABEL(label), buf); g_free(buf); |