Drop most uses of GtkMisc in tests

Replace them by GtkWidget h/valign. The only remaining uses
are those where a size group is involved; they can't be replaced
until GtkLabel stops looking at GtkMisc alignment for size
allocation.
This commit is contained in:
Matthias Clasen
2014-05-13 07:28:20 -04:00
parent 49188aeeda
commit 7840bad5d7
4 changed files with 19 additions and 38 deletions

View File

@@ -55,7 +55,7 @@ main (int argc, char **argv)
gtk_box_pack_end (GTK_BOX (vbox), scale, FALSE, FALSE, 0);
label = gtk_label_new ("Event processing time (ms):");
gtk_misc_set_alignment (GTK_MISC (label), 0.0, 0.5);
gtk_widget_set_halign (label, GTK_ALIGN_CENTER);
gtk_box_pack_end (GTK_BOX (vbox), label, FALSE, FALSE, 0);
g_signal_connect (window, "motion-notify-event",