summaryrefslogtreecommitdiff
path: root/src/modules/access/e_mod_config.c
blob: 51eb577fca70da13a4d5c0b9c05eedde6c616835 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
#include "e.h"
#include "e_mod_main.h"

struct _E_Config_Dialog_Data
{
   int dummy;
};

/* local function prototypes */
static void        *_create_data (E_Config_Dialog *cfd);
static void         _fill_data   (E_Config_Dialog_Data *cfdata);
static void         _free_data   (E_Config_Dialog *cfd EINA_UNUSED, E_Config_Dialog_Data *cfdata);
static Evas_Object *_basic_create(E_Config_Dialog *cfd EINA_UNUSED, Evas *evas, E_Config_Dialog_Data *cfdata);
static int          _basic_apply (E_Config_Dialog *cfd EINA_UNUSED, E_Config_Dialog_Data *cfdata);

void
_config_pager_module(void)
{
   E_Config_Dialog_View *v;

   if (e_config_dialog_find("E", "_e_mod_access_config_dialog"))
     return;
   v = E_NEW(E_Config_Dialog_View, 1);
   if (!v) return;

   v->create_cfdata =        _create_data;
   v->free_cfdata =          _free_data;
   v->basic.create_widgets = _basic_create;
   v->basic.apply_cfdata =   _basic_apply;

   e_config_dialog_new(NULL, _("Access Settings"), "E",
                       "_e_mod_access_config_dialog",
                       "preferences-desktop-access", 0, v, NULL);
}

/* local function prototypes */
static void *
_create_data(E_Config_Dialog *cfd EINA_UNUSED)
{
   E_Config_Dialog_Data *cfdata;

   cfdata = E_NEW(E_Config_Dialog_Data, 1);
   _fill_data(cfdata);
   return cfdata;
}

static void
_fill_data(E_Config_Dialog_Data *cfdata)
{
   cfdata->dummy = 1;
}

static void
_free_data(E_Config_Dialog *cfd EINA_UNUSED, E_Config_Dialog_Data *cfdata)
{
   E_FREE(cfdata);
}

static Evas_Object *
_basic_create(E_Config_Dialog *cfd EINA_UNUSED, Evas *evas, E_Config_Dialog_Data *cfdata EINA_UNUSED) 
{
   Evas_Object *ol, *of;

   ol = e_widget_list_add(evas, 0, 0);

   of = e_widget_framelist_add(evas, _("General"), 0);
   e_widget_list_object_append(ol, of, 1, 0, 0.5);

   return ol;
}

static int
_basic_apply(E_Config_Dialog *cfd EINA_UNUSED, E_Config_Dialog_Data *cfdata EINA_UNUSED) 
{
   e_config_save_queue();
   return 1;
}