[gnome-photos] preview-view: Don't horizontally expand the EditPalette



commit 6304694dc1bc38257cd496be0298d3599d447d7c
Author: Alessandro Bono <abono gnome org>
Date:   Tue Jul 18 14:04:10 2017 +0200

    preview-view: Don't horizontally expand the EditPalette
    
    The EditPalette should be just as wide as it needs to be, and shouldn't
    needlessly expand. We have managed to survive so far by using GtkBoxes
    to pack the tools' widgets, and because of the fact that their layouts
    were relatively simple. However, that's no longer enough as the
    ToolCrop grows more bells and whistles in the form of orientation
    controls.
    
    Therefore, let's do the right thing and set EditPalette's hexpand to
    FALSE. As a side effect, it will be possible to use GtkGrids instead
    of GtkBoxes for the tools.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=781134

 src/photos-preview-view.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
---
diff --git a/src/photos-preview-view.c b/src/photos-preview-view.c
index bf7adab..1e55da8 100644
--- a/src/photos-preview-view.c
+++ b/src/photos-preview-view.c
@@ -1058,6 +1058,7 @@ photos_preview_view_init (PhotosPreviewView *self)
   gtk_container_add (GTK_CONTAINER (self->revealer), sw);
 
   self->palette = photos_edit_palette_new ();
+  gtk_widget_set_hexpand (self->palette, FALSE);
   gtk_container_add (GTK_CONTAINER (sw), self->palette);
   g_signal_connect_swapped (self->palette, "tool-changed", G_CALLBACK (photos_preview_view_tool_changed), 
self);
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]