forked from AuroraMiddleware/gtk
GtkFontChooser: Add preview entry to the grid
This commit is contained in:
parent
f60d0dc35a
commit
03ab18fa7a
@ -547,7 +547,6 @@ gtk_font_chooser_init (GtkFontChooser *fontchooser)
|
||||
/** Bootstrapping widget layout **/
|
||||
gtk_box_set_spacing (GTK_BOX (fontchooser), 6);
|
||||
|
||||
|
||||
/* Main font family/face view */
|
||||
scrolled_win = gtk_scrolled_window_new (NULL, NULL);
|
||||
gtk_scrolled_window_set_policy (GTK_SCROLLED_WINDOW (scrolled_win),
|
||||
@ -561,10 +560,11 @@ gtk_font_chooser_init (GtkFontChooser *fontchooser)
|
||||
|
||||
gtk_grid_attach (GTK_GRID (grid), priv->search_entry, 0, 0, 3, 1);
|
||||
gtk_grid_attach (GTK_GRID (grid), scrolled_win, 0, 1, 3, 1);
|
||||
gtk_grid_attach (GTK_GRID (grid), priv->size_slider, 0, 2, 2, 1);
|
||||
gtk_grid_attach (GTK_GRID (grid), priv->size_spin, 2, 2, 1, 1);
|
||||
gtk_grid_attach (GTK_GRID (grid), priv->preview, 0, 2, 3, 1);
|
||||
gtk_grid_attach (GTK_GRID (grid), priv->size_slider, 0, 3, 2, 1);
|
||||
gtk_grid_attach (GTK_GRID (grid), priv->size_spin, 2, 3, 1, 1);
|
||||
|
||||
gtk_box_pack_start (GTK_BOX (fontchooser), grid, TRUE, TRUE, 0);
|
||||
gtk_box_pack_start (GTK_BOX (fontchooser), grid, TRUE, FALSE, 0);
|
||||
|
||||
/* Setting the adjustment values for the size slider */
|
||||
gtk_adjustment_set_value (gtk_range_get_adjustment (GTK_RANGE (priv->size_slider)),
|
||||
|
Loading…
Reference in New Issue
Block a user