[maemo-commits] [maemo-commits] r10422 - in projects/haf/trunk/hildon-home-webshortcut: . plugin

From: subversion at stage.maemo.org subversion at stage.maemo.org
Date: Tue Mar 6 15:31:15 EET 2007
Author: jobi
Date: 2007-03-06 15:31:13 +0200 (Tue, 06 Mar 2007)
New Revision: 10422

Modified:
   projects/haf/trunk/hildon-home-webshortcut/ChangeLog
   projects/haf/trunk/hildon-home-webshortcut/plugin/hildon-home-webshortcut.c
Log:

2007-03-06  Johan Bilien  <johan.bilien at nokia.com>

	* plugin/hildon-home-webshortcut.c:
	- added resize type and minimum size



Modified: projects/haf/trunk/hildon-home-webshortcut/ChangeLog
===================================================================
--- projects/haf/trunk/hildon-home-webshortcut/ChangeLog	2007-03-06 13:15:54 UTC (rev 10421)
+++ projects/haf/trunk/hildon-home-webshortcut/ChangeLog	2007-03-06 13:31:13 UTC (rev 10422)
@@ -1,6 +1,11 @@
 2007-03-06  Johan Bilien  <johan.bilien at nokia.com>
 
-	* plugin/hildon-home-webshort.h: Fixed typo
+	* plugin/hildon-home-webshortcut.c:
+	- added resize type and minimum size
+
+2007-03-06  Johan Bilien  <johan.bilien at nokia.com>
+
+	* plugin/hildon-home-webshortcut.h: Fixed typo
 	* configure.ac: 3.0.5
 
 2007-03-06  Johan Bilien  <johan.bilien at nokia.com>

Modified: projects/haf/trunk/hildon-home-webshortcut/plugin/hildon-home-webshortcut.c
===================================================================
--- projects/haf/trunk/hildon-home-webshortcut/plugin/hildon-home-webshortcut.c	2007-03-06 13:15:54 UTC (rev 10421)
+++ projects/haf/trunk/hildon-home-webshortcut/plugin/hildon-home-webshortcut.c	2007-03-06 13:31:13 UTC (rev 10422)
@@ -58,8 +58,10 @@
 #define HHWS_GCONF_IAP          "/apps/osso/apps/hhws/iap"
 #define HHWS_GCONF_URI          "/apps/osso/apps/hhws/uri"
 
-#define HILDON_HOME_WS_WIDTH 290
-#define HILDON_HOME_WS_HEIGHT 134
+#define HILDON_HOME_WS_WIDTH            290
+#define HILDON_HOME_WS_HEIGHT           134
+#define HILDON_HOME_WS_MINIMUM_WIDTH    120
+#define HILDON_HOME_WS_MINIMUM_HEIGHT   60
 #define HILDON_HOME_WS_ENV_HOME "HOME"
 #define HILDON_HOME_WS_SYSTEM_DIR ".osso/hildon-home"
 #define HILDON_HOME_WS_USER_FILE "hildon_home_wshortcut.png"
@@ -742,6 +744,12 @@
                                  priv->csm,
                                  NULL /* position function */,
                                  0 /* flags, deprecated */);
+
+  g_object_set (hhws,
+                "resize-type",          HILDON_DESKTOP_HOME_ITEM_RESIZE_BOTH,
+                "minimum-width",        HILDON_HOME_WS_WIDTH,
+                "minimum-height",       HILDON_HOME_WS_HEIGHT,
+                NULL);
 }
 
 static void


More information about the maemo-commits mailing list