summaryrefslogtreecommitdiff
path: root/gladeui/glade-base-editor.c
diff options
context:
space:
mode:
authorJuan Pablo Ugarte <juanpablougarte@gmail.com>2014-05-15 15:43:35 -0300
committerJuan Pablo Ugarte <juanpablougarte@gmail.com>2014-05-15 15:43:35 -0300
commita4a444174e025779a6925678fb4e1f826cd45bdd (patch)
treece2eb0464db2054a31ad0a102829240f1d29bd10 /gladeui/glade-base-editor.c
parent35a47d3330d02ffc2ab4ae7b0de41129d9cfd3d9 (diff)
downloadglade-a4a444174e025779a6925678fb4e1f826cd45bdd.tar.gz
Removed use of deprecated GtkMisc API
Diffstat (limited to 'gladeui/glade-base-editor.c')
-rw-r--r--gladeui/glade-base-editor.c12
1 files changed, 8 insertions, 4 deletions
diff --git a/gladeui/glade-base-editor.c b/gladeui/glade-base-editor.c
index 019342e5..c8ef558b 100644
--- a/gladeui/glade-base-editor.c
+++ b/gladeui/glade-base-editor.c
@@ -2018,7 +2018,8 @@ glade_base_editor_add_default_properties (GladeBaseEditor *editor,
/* Name */
label = gtk_label_new (_("Name:"));
- gtk_misc_set_alignment (GTK_MISC (label), 1.0, 0.0);
+ gtk_widget_set_halign (label, GTK_ALIGN_END);
+ gtk_widget_set_valign (label, GTK_ALIGN_START);
entry = gtk_entry_new ();
gtk_entry_set_text (GTK_ENTRY (entry), glade_widget_get_name (gchild));
@@ -2033,7 +2034,8 @@ glade_base_editor_add_default_properties (GladeBaseEditor *editor,
{
/* Type */
label = gtk_label_new (_("Type:"));
- gtk_misc_set_alignment (GTK_MISC (label), 1.0, 0.0);
+ gtk_widget_set_halign (label, GTK_ALIGN_END);
+ gtk_widget_set_valign (label, GTK_ALIGN_START);
entry = gtk_combo_box_new ();
gtk_combo_box_set_model (GTK_COMBO_BOX (entry), child_class);
@@ -2156,8 +2158,10 @@ glade_base_editor_add_label (GladeBaseEditor *editor, gchar *str)
row = editor->priv->row;
gtk_label_set_markup (GTK_LABEL (label), markup);
- gtk_misc_set_alignment (GTK_MISC (label), 0.0, 0.0);
- gtk_misc_set_padding (GTK_MISC (label), 0, 6);
+ gtk_widget_set_halign (label, GTK_ALIGN_START);
+ gtk_widget_set_valign (label, GTK_ALIGN_START);
+ gtk_widget_set_margin_top (label, 6);
+ gtk_widget_set_margin_bottom (label, 6);
gtk_grid_attach (GTK_GRID (editor->priv->table), label, 0, row, 2, 1);
gtk_widget_show (label);