forked from AuroraMiddleware/gtk
gtk/gtkfilechooserbutton: gtk_misc_set_alignment
Replacing the function gtk_misc_set_alignment () with gtk_widget_set_halign () and gtk_widget_set_valign () in gtk/gtkfilechooserbutton.c https://bugzilla.gnome.org/show_bug.cgi?id=650762
This commit is contained in:
parent
ab6e3366bc
commit
ee18c5fef3
@ -492,7 +492,8 @@ gtk_file_chooser_button_init (GtkFileChooserButton *button)
|
||||
|
||||
priv->label = gtk_label_new (_(FALLBACK_DISPLAY_NAME));
|
||||
gtk_label_set_ellipsize (GTK_LABEL (priv->label), PANGO_ELLIPSIZE_END);
|
||||
gtk_misc_set_alignment (GTK_MISC (priv->label), 0.0, 0.5);
|
||||
gtk_widget_set_halign (priv->label, GTK_ALIGN_START);
|
||||
gtk_widget_set_valign (priv->label, GTK_ALIGN_CENTER);
|
||||
gtk_box_pack_start (GTK_BOX (box), priv->label, TRUE, TRUE, 0);
|
||||
//gtk_container_add (GTK_CONTAINER (box), priv->label);
|
||||
gtk_widget_show (priv->label);
|
||||
|
Loading…
Reference in New Issue
Block a user