Commit 8a8ce85e authored by Matthias Clasen's avatar Matthias Clasen

GtkMenuItem: Stop using gtk_misc_set_alignment

GtkMisc is heading for deprecation. Just use GtkWidget h/valign.
parent 22eaffba
......@@ -2505,7 +2505,8 @@ gtk_menu_item_ensure_label (GtkMenuItem *menu_item)
if (!gtk_bin_get_child (GTK_BIN (menu_item)))
accel_label = g_object_new (GTK_TYPE_ACCEL_LABEL, NULL);
gtk_misc_set_alignment (GTK_MISC (accel_label), 0.0, 0.5);
gtk_widget_set_halign (accel_label, GTK_ALIGN_START);
gtk_widget_set_valign (accel_label, GTK_ALIGN_CENTER);
gtk_container_add (GTK_CONTAINER (menu_item), accel_label);
gtk_accel_label_set_accel_widget (GTK_ACCEL_LABEL (accel_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