[gnome-builder/wip/project-selector: 7/66] project-selector: try something a bit smaller
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-builder/wip/project-selector: 7/66] project-selector: try something a bit smaller
- Date: Wed, 8 Apr 2015 01:03:24 +0000 (UTC)
commit 91e1d32cd6a13ce615bfa6be2b4fd3e73dbdcf07
Author: Christian Hergert <christian hergert me>
Date: Tue Mar 31 14:18:58 2015 -0700
project-selector: try something a bit smaller
data/ui/gb-project-window.ui | 11 ++++++++++-
src/workbench/gb-project-window.c | 5 ++++-
2 files changed, 14 insertions(+), 2 deletions(-)
---
diff --git a/data/ui/gb-project-window.ui b/data/ui/gb-project-window.ui
index d94038d..7b39793 100644
--- a/data/ui/gb-project-window.ui
+++ b/data/ui/gb-project-window.ui
@@ -96,8 +96,17 @@
</object>
</child>
<child>
- <object class="GtkScrolledWindow">
+ <object class="GbScrolledWindow">
+ <property name="margin">24</property>
+ <property name="shadow-type">in</property>
+ <property name="hexpand">true</property>
<property name="vexpand">true</property>
+ <property name="valign">center</property>
+ <property name="halign">center</property>
+ <property name="min-content-width">400</property>
+ <property name="max-content-width">500</property>
+ <property name="min-content-height">200</property>
+ <property name="max-content-height">500</property>
<property name="visible">true</property>
<child>
<object class="GtkListBox" id="listbox">
diff --git a/src/workbench/gb-project-window.c b/src/workbench/gb-project-window.c
index bf87d65..d4fe23d 100644
--- a/src/workbench/gb-project-window.c
+++ b/src/workbench/gb-project-window.c
@@ -26,6 +26,7 @@
#include "gb-editor-document.h"
#include "gb-project-window.h"
+#include "gb-scrolled-window.h"
#include "gb-widget.h"
#include "gb-workbench.h"
@@ -194,7 +195,7 @@ create_row (GbProjectWindow *self,
image = g_object_new (GTK_TYPE_IMAGE,
"icon-name", "folder",
- "pixel-size", 64,
+ "pixel-size", 32,
"margin-end", 12,
"margin-start", 12,
"visible", TRUE,
@@ -403,6 +404,8 @@ gb_project_window_class_init (GbProjectWindowClass *klass)
GB_WIDGET_CLASS_BIND (klass, GbProjectWindow, search_bar);
GB_WIDGET_CLASS_BIND (klass, GbProjectWindow, search_button);
GB_WIDGET_CLASS_BIND (klass, GbProjectWindow, select_button);
+
+ g_type_ensure (GB_TYPE_SCROLLED_WINDOW);
}
static void
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]