return ec->moving ? strdup("TRUE") : strdup("FALSE");
}
-static const char*
-_get_win_prop_Hidden(const Evas_Object *evas_obj)
-{
- const E_Client *ec = evas_object_data_get(evas_obj, "E_Client");
-
- return ec->hidden ? strdup("TRUE") : strdup("FALSE");
-}
-
static const char*
_set_win_prop_Hidden(Evas_Object *evas_obj, const char *prop_value)
{
return NULL;
}
+static const char*
+_get_win_prop_Hidden(const Evas_Object *evas_obj)
+{
+ const E_Client *ec = evas_object_data_get(evas_obj, "E_Client");
+
+ return ec->hidden ? strdup("TRUE") : strdup("FALSE");
+}
+
static const char*
_get_win_prop_32bit(const Evas_Object *evas_obj)
{
return str;
}
+static const char*
+_set_win_prop_Geometry(Evas_Object *evas_obj, const char *prop_value)
+{
+ int x = -1, y = -1, w = -1, h = -1;
+
+ sscanf(prop_value, "%d, %d %dx%d", &x, &y, &w, &h);
+ if (x < 0 || y < 0 || w <= 0 || h <= 0)
+ return strdup("invalid property value");
+
+ evas_object_geometry_set(evas_obj, x, y, w, h);
+
+ return NULL;
+}
+
static const char*
_get_win_prop_Geometry(const Evas_Object *evas_obj)
{
ec = evas_object_data_get(evas_obj, "E_Client");
- if (asprintf(&str, "[%d, %d, %d, %d]", ec->x, ec->y, ec->w, ec->h) < 0)
+ if (asprintf(&str, "[%d, %d %dx%d]", ec->x, ec->y, ec->w, ec->h) < 0)
return NULL;
return str;
{
"Geometry",
_get_win_prop_Geometry,
- NULL
+ _set_win_prop_Geometry
},
{
"ParentWindowID",