[Xfce4-commits] [xfce/xfce4-panel] 01/01: Replace deprecated gtk_misc_set_alignment
noreply at xfce.org
noreply at xfce.org
Thu Apr 13 23:46:01 CEST 2017
This is an automated email from the git hooks/post-receive script.
ochosi pushed a commit to branch master
in repository xfce/xfce4-panel.
commit d3a510d75750363cc523cecb5b0ff9004d14e4f7
Author: Simon Steinbeiss <simon.steinbeiss at elfenbeinturm.at>
Date: Thu Apr 13 23:45:47 2017 +0200
Replace deprecated gtk_misc_set_alignment
---
panel/panel-item-dialog.c | 2 +-
plugins/tasklist/tasklist-widget.c | 8 ++++----
2 files changed, 5 insertions(+), 5 deletions(-)
diff --git a/panel/panel-item-dialog.c b/panel/panel-item-dialog.c
index d5cb6d4..4bf85ae 100644
--- a/panel/panel-item-dialog.c
+++ b/panel/panel-item-dialog.c
@@ -215,7 +215,7 @@ panel_item_dialog_init (PanelItemDialog *dialog)
gtk_widget_show (hbox);
label = gtk_label_new_with_mnemonic (_("_Search:"));
- gtk_misc_set_alignment (GTK_MISC (label), 1.0, 0.5);
+ gtk_label_set_xalign (GTK_LABEL (label), 1.0);
gtk_box_pack_start (GTK_BOX (hbox), label, TRUE, TRUE, 0);
gtk_widget_show (label);
diff --git a/plugins/tasklist/tasklist-widget.c b/plugins/tasklist/tasklist-widget.c
index e412468..ef78ce3 100644
--- a/plugins/tasklist/tasklist-widget.c
+++ b/plugins/tasklist/tasklist-widget.c
@@ -2157,14 +2157,14 @@ xfce_tasklist_child_new (XfceTasklist *tasklist)
if (!xfce_tasklist_vertical (tasklist))
{
/* gtk_box_reorder_child (GTK_BOX (child->box), child->icon, 0); */
- gtk_misc_set_alignment (GTK_MISC (child->label), 0.0, 0.5);
+ gtk_label_set_xalign (GTK_LABEL (child->label), 0.0);
gtk_label_set_ellipsize (GTK_LABEL (child->label), tasklist->ellipsize_mode);
}
else
{
/* gtk_box_reorder_child (GTK_BOX (child->box), child->icon, -1); */
+ gtk_label_set_yalign (GTK_LABEL (child->label), 0.0);
gtk_label_set_angle (GTK_LABEL (child->label), 270);
- gtk_misc_set_alignment (GTK_MISC (child->label), 0.50, 0.00);
/* TODO can we already ellipsize here yet? */
}
@@ -4023,7 +4023,7 @@ xfce_tasklist_update_orientation (XfceTasklist *tasklist)
if (horizontal)
{
/* gtk_box_reorder_child (GTK_BOX (child->box), child->icon, 0); */
- gtk_misc_set_alignment (GTK_MISC (child->label), 0.0, 0.5);
+ gtk_label_set_xalign (GTK_LABEL (child->label), 0.0);
gtk_label_set_angle (GTK_LABEL (child->label), 0);
gtk_label_set_ellipsize (GTK_LABEL (child->label),
child->tasklist->ellipsize_mode);
@@ -4031,7 +4031,7 @@ xfce_tasklist_update_orientation (XfceTasklist *tasklist)
else
{
/* gtk_box_reorder_child (GTK_BOX (child->box), child->icon, -1); */
- gtk_misc_set_alignment (GTK_MISC (child->label), 0.50, 0.00);
+ gtk_label_set_yalign (GTK_LABEL (child->label), 0.0);
gtk_label_set_angle (GTK_LABEL (child->label), 270);
gtk_label_set_ellipsize (GTK_LABEL (child->label), PANGO_ELLIPSIZE_NONE);
}
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.
More information about the Xfce4-commits
mailing list