[anjuta] libanjuta: Set reasonable default size for preferences window (bgo#723444)
- From: Johannes Schmid <jhs src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [anjuta] libanjuta: Set reasonable default size for preferences window (bgo#723444)
- Date: Sun, 2 Feb 2014 19:40:52 +0000 (UTC)
commit 748d35951c56f18c04ede931e59686f1a170da00
Author: Johannes Schmid <jhs gnome org>
Date: Sun Feb 2 15:25:04 2014 +0100
libanjuta: Set reasonable default size for preferences window (bgo#723444)
libanjuta/anjuta-preferences-dialog.c | 9 +++++++--
1 files changed, 7 insertions(+), 2 deletions(-)
---
diff --git a/libanjuta/anjuta-preferences-dialog.c b/libanjuta/anjuta-preferences-dialog.c
index 7f197b9..2e37b5a 100644
--- a/libanjuta/anjuta-preferences-dialog.c
+++ b/libanjuta/anjuta-preferences-dialog.c
@@ -41,6 +41,9 @@
#include <libanjuta/anjuta-cell-renderer-captioned-image.h>
#include <libanjuta/anjuta-preferences-dialog.h>
+#define PREFERENCES_DEFAULT_WIDTH 800
+#define PREFERENCES_DEFAULT_HEIGHT 400
+
struct _AnjutaPreferencesDialogPrivate {
GtkWidget *treeview;
GtkListStore *store;
@@ -238,8 +241,10 @@ GtkWidget *
anjuta_preferences_dialog_new (void)
{
return g_object_new (ANJUTA_TYPE_PREFERENCES_DIALOG,
- "title", _("Anjuta Preferences"),
- NULL);
+ "title", _("Anjuta Preferences"),
+ "default-width", PREFERENCES_DEFAULT_WIDTH,
+ "default-height", PREFERENCES_DEFAULT_HEIGHT,
+ NULL);
}
/**
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]