shell: Shrink vertically
So that it has more chances of fitting on a netbook screen. This is done by removing the 6 pixel margin, and the 12 pixel bottom padding. This gives us the whole panel with a height of around 550 pixels with the default text size, which should be enough to display on a 600 pixels high screen. https://bugzilla.gnome.org/show_bug.cgi?id=645808
This commit is contained in:
parent
11d94b271b
commit
2066d456ab
2 changed files with 3 additions and 6 deletions
|
@ -141,7 +141,6 @@ cc_shell_category_view_constructed (GObject *object)
|
|||
{
|
||||
CcShellCategoryViewPrivate *priv = CC_SHELL_CATEGORY_VIEW (object)->priv;
|
||||
GtkWidget *iconview, *vbox;
|
||||
GtkWidget *alignment;
|
||||
|
||||
iconview = cc_shell_item_view_new ();
|
||||
gtk_icon_view_set_model (GTK_ICON_VIEW (iconview), priv->model);
|
||||
|
@ -174,11 +173,8 @@ cc_shell_category_view_constructed (GObject *object)
|
|||
gtk_box_pack_start (GTK_BOX (vbox), iconview, FALSE, TRUE, 0);
|
||||
|
||||
/* add the main vbox to the view */
|
||||
alignment = gtk_alignment_new (0, 0, 1, 1);
|
||||
gtk_alignment_set_padding (GTK_ALIGNMENT (alignment), 0, 0, 12, 0);
|
||||
gtk_container_add (GTK_CONTAINER (alignment), vbox);
|
||||
gtk_container_add (GTK_CONTAINER (object), alignment);
|
||||
gtk_widget_show_all (alignment);
|
||||
gtk_container_add (GTK_CONTAINER (object), vbox);
|
||||
gtk_widget_show_all (vbox);
|
||||
|
||||
priv->iconview = iconview;
|
||||
}
|
||||
|
|
|
@ -199,6 +199,7 @@ cc_shell_item_view_init (CcShellItemView *self)
|
|||
{
|
||||
self->priv = SHELL_ITEM_VIEW_PRIVATE (self);
|
||||
|
||||
g_object_set (self, "margin", 0, NULL);
|
||||
g_signal_connect (self, "item-activated",
|
||||
G_CALLBACK (iconview_item_activated_cb), self);
|
||||
g_signal_connect (self, "button-press-event",
|
||||
|
|
Loading…
Add table
Reference in a new issue