Remove some printfs.

Add config struct for Indicator Window.



SVN revision: 44026
This commit is contained in:
Christopher Michael 2009-11-27 18:16:51 +00:00
parent d5972250a4
commit 099e03498e
4 changed files with 41 additions and 6 deletions

View File

@ -33,6 +33,10 @@ il_config_init(E_Module *m)
E_CONFIG_VAL(D, T, policy.home.name, STR);
E_CONFIG_VAL(D, T, policy.home.title, STR);
E_CONFIG_VAL(D, T, policy.home.win_type, STR);
E_CONFIG_VAL(D, T, policy.indicator.class, STR);
E_CONFIG_VAL(D, T, policy.indicator.name, STR);
E_CONFIG_VAL(D, T, policy.indicator.title, STR);
E_CONFIG_VAL(D, T, policy.indicator.win_type, STR);
il_cfg = e_config_domain_load("module.illume2", conf_edd);
if ((il_cfg) &&
@ -74,7 +78,14 @@ il_config_init(E_Module *m)
eina_stringshare_add("Illume-Home");
il_cfg->policy.home.title =
eina_stringshare_add("Illume Home");
il_cfg->policy.home.win_type = NULL;
il_cfg->policy.indicator.win_type = NULL;
il_cfg->policy.indicator.class =
eina_stringshare_add("Illume-Indicator");
il_cfg->policy.indicator.name =
eina_stringshare_add("Illume-Indicator");
il_cfg->policy.indicator.title =
eina_stringshare_add("Illume Indicator");
il_cfg->policy.indicator.win_type = NULL;
}
il_cfg->version = (IL_CONFIG_MAJ << 16) | IL_CONFIG_MIN;
}
@ -127,6 +138,15 @@ il_config_shutdown(void)
if (il_cfg->policy.home.win_type)
eina_stringshare_del(il_cfg->policy.home.win_type);
if (il_cfg->policy.indicator.class)
eina_stringshare_del(il_cfg->policy.indicator.class);
if (il_cfg->policy.indicator.name)
eina_stringshare_del(il_cfg->policy.indicator.name);
if (il_cfg->policy.indicator.title)
eina_stringshare_del(il_cfg->policy.indicator.title);
if (il_cfg->policy.indicator.win_type)
eina_stringshare_del(il_cfg->policy.indicator.win_type);
if (il_cfg->mod_dir) eina_stringshare_del(il_cfg->mod_dir);
E_FREE(il_cfg);

View File

@ -27,7 +27,7 @@ struct _Il_Config
const char *name;
const char *title;
const char *win_type;
} vkbd, softkey, home;
} vkbd, softkey, home, indicator;
} policy;
// Not User Configurable. Placeholders

View File

@ -6,29 +6,31 @@
static void
_border_add(E_Border *bd)
{ // handle a border being added
/*
printf("Border Add\n");
if (bd->client.icccm.transient_for)
printf("Transient For\n");
else if (bd->client.icccm.client_leader)
printf("Client Leader\n");
*/
}
static void
_border_del(E_Border *bd)
{ // handle a border being deleted
printf("Border Del\n");
}
static void
_border_focus_in(E_Border *bd)
{ // do something if focus enters a window
printf("Border Focus In\n");
}
static void
_border_focus_out(E_Border *bd)
{ // do something if the focus exits a window
printf("Border Focus Out\n");
}
static void

View File

@ -48,9 +48,22 @@ _il_config_windows_free(E_Config_Dialog *cfd, E_Config_Dialog_Data *cfdata)
static Evas_Object *
_il_config_windows_ui(E_Config_Dialog *cfd, Evas *evas, E_Config_Dialog_Data *cfdata)
{
Evas_Object *list;
Evas_Object *list, *of, *ow;
list = e_widget_list_add(evas, 0, 0);
of = e_widget_framelist_add(evas, _("Home"), 0);
e_widget_list_object_append(list, of, 1, 0, 0.0);
of = e_widget_framelist_add(evas, _("Indicator"), 0);
e_widget_list_object_append(list, of, 1, 0, 0.0);
of = e_widget_framelist_add(evas, _("Keyboard"), 0);
e_widget_list_object_append(list, of, 1, 0, 0.0);
of = e_widget_framelist_add(evas, _("Softkey"), 0);
e_widget_list_object_append(list, of, 1, 0, 0.0);
return list;
}