summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorraveit65 <[email protected]>2016-06-20 23:30:51 +0200
committerraveit65 <[email protected]>2016-06-24 11:27:16 +0200
commit5b8cecc43034d1668cce43a170e63eaa1a36459e (patch)
tree9b3660b191bb986aba70ca55e0c3dbcde00df064 /src
parent264b9653dcba9f75a7385bc05a389e4252eefccb (diff)
downloadmate-notification-daemon-5b8cecc43034d1668cce43a170e63eaa1a36459e.tar.bz2
mate-notification-daemon-5b8cecc43034d1668cce43a170e63eaa1a36459e.tar.xz
nodoka: do not use deprecated GtkAlignment
Diffstat (limited to 'src')
-rw-r--r--src/themes/nodoka/nodoka-theme.c22
1 files changed, 7 insertions, 15 deletions
diff --git a/src/themes/nodoka/nodoka-theme.c b/src/themes/nodoka/nodoka-theme.c
index 59aac14..40095ea 100644
--- a/src/themes/nodoka/nodoka-theme.c
+++ b/src/themes/nodoka/nodoka-theme.c
@@ -719,7 +719,6 @@ create_notification(UrlClickedCb url_clicked)
GtkWidget *vbox;
GtkWidget *close_button;
GtkWidget *image;
- GtkWidget *alignment;
AtkObject *atkobj;
WindowData *windata;
GdkVisual *visual;
@@ -867,12 +866,10 @@ create_notification(UrlClickedCb url_clicked)
atkobj = gtk_widget_get_accessible(windata->body_label);
atk_object_set_description(atkobj, "Notification body text.");
- alignment = gtk_alignment_new(1, 0.5, 0, 0);
- gtk_widget_show(alignment);
- gtk_box_pack_start(GTK_BOX(vbox), alignment, FALSE, TRUE, 0);
-
windata->actions_box = gtk_box_new(GTK_ORIENTATION_HORIZONTAL, 6);
- gtk_container_add(GTK_CONTAINER(alignment), windata->actions_box);
+ gtk_widget_set_halign (windata->actions_box, GTK_ALIGN_END);
+ gtk_widget_show(windata->actions_box);
+ gtk_box_pack_start(GTK_BOX(vbox), windata->actions_box, FALSE, TRUE, 0);
return GTK_WINDOW(win);
}
@@ -963,21 +960,16 @@ add_notification_action(GtkWindow *nw, const char *text, const char *key,
g_assert(windata != NULL);
- if (!gtk_widget_get_visible(windata->actions_box))
+ if (gtk_widget_get_visible(windata->actions_box))
{
- GtkWidget *alignment;
-
gtk_widget_show(windata->actions_box);
update_content_hbox_visibility(windata);
- alignment = gtk_alignment_new(1, 0.5, 0, 0);
- gtk_widget_show(alignment);
- gtk_box_pack_end(GTK_BOX(windata->actions_box), alignment,
- FALSE, TRUE, 0);
-
windata->pie_countdown = gtk_drawing_area_new();
+ gtk_widget_set_halign (windata->pie_countdown, GTK_ALIGN_END);
gtk_widget_show(windata->pie_countdown);
- gtk_container_add(GTK_CONTAINER(alignment), windata->pie_countdown);
+
+ gtk_box_pack_end (GTK_BOX (windata->actions_box), windata->pie_countdown, FALSE, TRUE, 0);
gtk_widget_set_size_request(windata->pie_countdown,
PIE_WIDTH, PIE_HEIGHT);
g_signal_connect(G_OBJECT(windata->pie_countdown), "draw",