[gnome-builder] greeter: force width of greeter row
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-builder] greeter: force width of greeter row
- Date: Tue, 22 Jan 2019 19:39:19 +0000 (UTC)
commit bc15a8c1d6149a7fbd869a04881d1a5fbc2dc4cc
Author: Christian Hergert <chergert redhat com>
Date: Tue Jan 22 11:38:45 2019 -0800
greeter: force width of greeter row
src/libide/greeter/ide-greeter-row.c | 11 +++++++++++
1 file changed, 11 insertions(+)
---
diff --git a/src/libide/greeter/ide-greeter-row.c b/src/libide/greeter/ide-greeter-row.c
index 1330b619c..6216f4503 100644
--- a/src/libide/greeter/ide-greeter-row.c
+++ b/src/libide/greeter/ide-greeter-row.c
@@ -70,6 +70,15 @@ ide_greeter_row_new (void)
return g_object_new (IDE_TYPE_GREETER_ROW, NULL);
}
+static void
+ide_greeter_row_get_preferred_width (GtkWidget *widget,
+ gint *min_width,
+ gint *nat_width)
+{
+ *min_width = 600;
+ *nat_width = 600;
+}
+
static void
ide_greeter_row_finalize (GObject *object)
{
@@ -141,6 +150,8 @@ ide_greeter_row_class_init (IdeGreeterRowClass *klass)
object_class->get_property = ide_greeter_row_get_property;
object_class->set_property = ide_greeter_row_set_property;
+ widget_class->get_preferred_width = ide_greeter_row_get_preferred_width;
+
/**
* IdeGreeterRow:project-info:
*
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]