Commit 1206b12b authored by Paolo Borelli's avatar Paolo Borelli

Drop uses of GtkMisc

parent 64be430c
......@@ -433,7 +433,6 @@ build_single_doc_dialog (GeditCloseConfirmationDialog *dlg)
gtk_label_set_use_markup (GTK_LABEL (primary_label), TRUE);
gtk_widget_set_halign (primary_label, GTK_ALIGN_CENTER);
gtk_widget_set_valign (primary_label, GTK_ALIGN_START);
gtk_misc_set_alignment (GTK_MISC (primary_label), 0.5, 0);
gtk_label_set_selectable (GTK_LABEL (primary_label), TRUE);
gtk_widget_set_can_focus (primary_label, FALSE);
......@@ -473,7 +472,6 @@ build_single_doc_dialog (GeditCloseConfirmationDialog *dlg)
gtk_label_set_line_wrap (GTK_LABEL (secondary_label), TRUE);
gtk_widget_set_halign (secondary_label, GTK_ALIGN_CENTER);
gtk_widget_set_valign (secondary_label, GTK_ALIGN_START);
gtk_misc_set_alignment (GTK_MISC (secondary_label), 0.5, 0);
gtk_label_set_selectable (GTK_LABEL (secondary_label), TRUE);
gtk_widget_set_can_focus (secondary_label, FALSE);
......@@ -561,10 +559,8 @@ build_multiple_docs_dialog (GeditCloseConfirmationDialog *dlg)
primary_label = gtk_label_new (NULL);
gtk_label_set_line_wrap (GTK_LABEL (primary_label), TRUE);
gtk_label_set_use_markup (GTK_LABEL (primary_label), TRUE);
gtk_misc_set_alignment (GTK_MISC (primary_label), 0, 0.5);
gtk_widget_set_halign (primary_label, GTK_ALIGN_CENTER);
gtk_widget_set_valign (primary_label, GTK_ALIGN_START);
gtk_misc_set_alignment (GTK_MISC (primary_label), 0.5, 0);
gtk_label_set_selectable (GTK_LABEL (primary_label), TRUE);
gtk_widget_set_can_focus (primary_label, FALSE);
......@@ -634,7 +630,6 @@ build_multiple_docs_dialog (GeditCloseConfirmationDialog *dlg)
gtk_label_set_line_wrap (GTK_LABEL (secondary_label), TRUE);
gtk_widget_set_halign (secondary_label, GTK_ALIGN_CENTER);
gtk_widget_set_valign (secondary_label, GTK_ALIGN_START);
gtk_misc_set_alignment (GTK_MISC (secondary_label), 0.5, 0);
gtk_label_set_selectable (GTK_LABEL (secondary_label), TRUE);
gtk_label_set_mnemonic_widget (GTK_LABEL (select_label), priv->list_box);
......
......@@ -960,7 +960,7 @@ panel_on_drag_begin (GtkWidget *widget,
label = gtk_label_new (name);
gtk_label_set_ellipsize (GTK_LABEL (label), PANGO_ELLIPSIZE_END);
gtk_widget_set_halign (label, GTK_ALIGN_START);
gtk_misc_set_alignment (GTK_MISC (label), 0.0, 0.5);
gtk_widget_set_valign (label, GTK_ALIGN_CENTER);
gtk_icon_size_lookup (GTK_ICON_SIZE_MENU, &width, &height);
image_box = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 0);
......@@ -1597,11 +1597,11 @@ row_create (GtkWidget *row)
generic_row->label = gtk_label_new (NULL);
gtk_label_set_ellipsize (GTK_LABEL (generic_row->label), PANGO_ELLIPSIZE_END);
gtk_widget_set_halign (generic_row->label, GTK_ALIGN_START);
gtk_misc_set_alignment (GTK_MISC (generic_row->label), 0.0, 0.5);
gtk_widget_set_valign (generic_row->label, GTK_ALIGN_CENTER);
generic_row->status_label = gtk_label_new (NULL);
gtk_widget_set_halign (generic_row->status_label, GTK_ALIGN_END);
gtk_misc_set_alignment (GTK_MISC (generic_row->status_label), 1.0, 0.5);
gtk_widget_set_valign (generic_row->status_label, GTK_ALIGN_CENTER);
generic_row->close_button = gedit_close_button_new ();
......
......@@ -851,7 +851,10 @@ handle_builder_error (const gchar *message, ...)
g_free (msg_plain);
g_free (msg);
gtk_misc_set_padding (GTK_MISC (label), 5, 5);
gtk_widget_set_margin_start (label, 6);
gtk_widget_set_margin_end (label, 6);
gtk_widget_set_margin_top (label, 6);
gtk_widget_set_margin_bottom (label, 6);
return label;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment