aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMike Blumenkrantz <michael.blumenkrantz@gmail.com>2012-06-21 10:42:04 +0000
committerMike Blumenkrantz <michael.blumenkrantz@gmail.com>2012-06-21 10:42:04 +0000
commit3ccb0c6b95a103d584dd94ef134f54c7b6c9133f (patch)
tree207e9338aab32ea49dec0349e9e4e0b347cb47f9
parentfix sloppy focus potr warp on first window focus. (diff)
downloadenlightenment-3ccb0c6b95a103d584dd94ef134f54c7b6c9133f.tar.gz
fix pager id saving, fixes #684 and also deletes your pager configs
SVN revision: 72586
-rw-r--r--src/modules/pager/e_mod_main.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/modules/pager/e_mod_main.c b/src/modules/pager/e_mod_main.c
index baeade7cc..f6725f7f3 100644
--- a/src/modules/pager/e_mod_main.c
+++ b/src/modules/pager/e_mod_main.c
@@ -271,9 +271,13 @@ _gc_icon(E_Gadcon_Client_Class *client_class __UNUSED__, Evas *evas)
}
static const char *
-_gc_id_new(E_Gadcon_Client_Class *client_class __UNUSED__)
+_gc_id_new(E_Gadcon_Client_Class *client_class)
{
- return _gadcon_class.name;
+ char buf[PATH_MAX];
+
+ snprintf(buf, sizeof(buf), "%s.%d", client_class->name,
+ eina_list_count(pager_config->instances));
+ return strdup(buf);
}
static Pager *