summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorWolfgang Ulbrich <[email protected]>2015-11-21 13:51:36 +0100
committerWolfgang Ulbrich <[email protected]>2015-11-21 13:51:36 +0100
commit3878dcabfed92bdf64f96ed4b61ce9686d791dbd (patch)
treecf2ec94096f719eef2ccce20d875d5dc17658507 /src
parent11faa5bb63005322d016aa0c76653985d0468b42 (diff)
downloadmate-calc-3878dcabfed92bdf64f96ed4b61ce9686d791dbd.tar.bz2
mate-calc-3878dcabfed92bdf64f96ed4b61ce9686d791dbd.tar.xz
replace deprecated GtkMisc
Diffstat (limited to 'src')
-rw-r--r--src/math-converter.c2
-rw-r--r--src/math-variable-popup.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/math-converter.c b/src/math-converter.c
index 7badc5e..02eba4b 100644
--- a/src/math-converter.c
+++ b/src/math-converter.c
@@ -433,7 +433,7 @@ math_converter_init(MathConverter *converter)
gtk_box_pack_start(GTK_BOX(hbox), swap_button, FALSE, TRUE, 0);
converter->priv->result_label = gtk_label_new("");
- gtk_misc_set_alignment(GTK_MISC(converter->priv->result_label), 1.0, 0.5);
+ gtk_widget_set_halign (converter->priv->result_label, GTK_ALIGN_END);
gtk_widget_set_sensitive(converter->priv->result_label, FALSE);
gtk_widget_show(converter->priv->result_label);
gtk_box_pack_start(GTK_BOX(converter), converter->priv->result_label, TRUE, TRUE, 0);
diff --git a/src/math-variable-popup.c b/src/math-variable-popup.c
index d033571..afd62bd 100644
--- a/src/math-variable-popup.c
+++ b/src/math-variable-popup.c
@@ -152,7 +152,7 @@ make_variable_entry(MathVariablePopup *popup, const gchar *name, const MPNumber
label = gtk_label_new(text);
g_free(text);
gtk_label_set_use_markup(GTK_LABEL(label), TRUE);
- gtk_misc_set_alignment(GTK_MISC(label), 0.0, 0.5);
+ gtk_widget_set_halign (label, GTK_ALIGN_START);
gtk_container_add(GTK_CONTAINER(button), label);
gtk_widget_show(label);