Backport: 3fd758f
:: Cleanup compile warnings and include randr object header.
Signed-off-by: Christopher Michael <cp.michael@samsung.com> SVN revision: 84121 Signed-off-by: Deon Thomas <PrinceAMD.Elive@gmail.com>
This commit is contained in:
parent
a0cbdec5c2
commit
306fcfcb70
|
@ -1,6 +1,7 @@
|
||||||
#include "e.h"
|
#include "e.h"
|
||||||
#include "e_mod_main.h"
|
#include "e_mod_main.h"
|
||||||
#include "e_int_config_randr.h"
|
#include "e_int_config_randr.h"
|
||||||
|
#include "e_smart_randr.h"
|
||||||
|
|
||||||
/* local structures */
|
/* local structures */
|
||||||
struct _E_Config_Dialog_Data
|
struct _E_Config_Dialog_Data
|
||||||
|
@ -11,7 +12,7 @@ struct _E_Config_Dialog_Data
|
||||||
/* local function prototypes */
|
/* local function prototypes */
|
||||||
static void *_create_data(E_Config_Dialog *cfd EINA_UNUSED);
|
static void *_create_data(E_Config_Dialog *cfd EINA_UNUSED);
|
||||||
static void _free_data(E_Config_Dialog *cfd EINA_UNUSED, 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, Evas *evas, 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);
|
static int _basic_apply(E_Config_Dialog *cfd EINA_UNUSED, E_Config_Dialog_Data *cfdata);
|
||||||
|
|
||||||
/* public functions */
|
/* public functions */
|
||||||
|
@ -25,10 +26,6 @@ e_int_config_randr(E_Container *con, const char *params EINA_UNUSED)
|
||||||
if (e_config_dialog_find("E", "screen/screen_setup"))
|
if (e_config_dialog_find("E", "screen/screen_setup"))
|
||||||
return NULL;
|
return NULL;
|
||||||
|
|
||||||
/* check for valid XRandR protocol version */
|
|
||||||
if (e_randr_screen_info.randr_version < ECORE_X_RANDR_1_2)
|
|
||||||
return NULL;
|
|
||||||
|
|
||||||
/* try to allocate dialog view */
|
/* try to allocate dialog view */
|
||||||
if (!(v = E_NEW(E_Config_Dialog_View, 1)))
|
if (!(v = E_NEW(E_Config_Dialog_View, 1)))
|
||||||
return NULL;
|
return NULL;
|
||||||
|
@ -78,8 +75,10 @@ _free_data(E_Config_Dialog *cfd EINA_UNUSED, E_Config_Dialog_Data *cfdata)
|
||||||
}
|
}
|
||||||
|
|
||||||
static Evas_Object *
|
static Evas_Object *
|
||||||
_basic_create(E_Config_Dialog *cfd, Evas *evas, E_Config_Dialog_Data *cfdata)
|
_basic_create(E_Config_Dialog *cfd EINA_UNUSED, Evas *evas, E_Config_Dialog_Data *cfdata)
|
||||||
{
|
{
|
||||||
|
Evas_Object *o;
|
||||||
|
|
||||||
/* create the base list widget */
|
/* create the base list widget */
|
||||||
o = e_widget_list_add(evas, 0, 0);
|
o = e_widget_list_add(evas, 0, 0);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue