forked from enlightenment/enlightenment
parent
006a014982
commit
1e75ff35e1
|
@ -3,22 +3,22 @@
|
|||
/* TODO:
|
||||
*
|
||||
* Give list some icons.
|
||||
*/
|
||||
*/
|
||||
|
||||
#define RANDR_11 ((1 << 16) | 1)
|
||||
|
||||
static void _fill_data (E_Config_Dialog_Data *cfdata);
|
||||
static void *_create_data (E_Config_Dialog *cfd);
|
||||
static void _free_data (E_Config_Dialog *cfd, E_Config_Dialog_Data *cfdata);
|
||||
static int _basic_check_changed (E_Config_Dialog *cfd, E_Config_Dialog_Data *cfdata);
|
||||
static int _basic_apply_data (E_Config_Dialog *cfd, E_Config_Dialog_Data *cfdata);
|
||||
static Evas_Object *_basic_create_widgets (E_Config_Dialog *cfd, Evas *evas, E_Config_Dialog_Data *cfdata);
|
||||
static void _load_resolutions (E_Config_Dialog_Data *cfdata);
|
||||
static void _load_rates (E_Config_Dialog_Data *cfdata);
|
||||
static void _ilist_item_change (void *data);
|
||||
static Eina_Bool _deferred_noxrandr_error (void *data);
|
||||
static Eina_Bool _deferred_norates_error (void *data);
|
||||
static int _sort_resolutions (const void *d1, const void *d2);
|
||||
static void _fill_data(E_Config_Dialog_Data *cfdata);
|
||||
static void *_create_data(E_Config_Dialog *cfd);
|
||||
static void _free_data(E_Config_Dialog *cfd, E_Config_Dialog_Data *cfdata);
|
||||
static int _basic_check_changed(E_Config_Dialog *cfd, E_Config_Dialog_Data *cfdata);
|
||||
static int _basic_apply_data(E_Config_Dialog *cfd, E_Config_Dialog_Data *cfdata);
|
||||
static Evas_Object *_basic_create_widgets(E_Config_Dialog *cfd, Evas *evas, E_Config_Dialog_Data *cfdata);
|
||||
static void _load_resolutions(E_Config_Dialog_Data *cfdata);
|
||||
static void _load_rates(E_Config_Dialog_Data *cfdata);
|
||||
static void _ilist_item_change(void *data);
|
||||
static Eina_Bool _deferred_noxrandr_error(void *data);
|
||||
static Eina_Bool _deferred_norates_error(void *data);
|
||||
static int _sort_resolutions(const void *d1, const void *d2);
|
||||
|
||||
typedef struct _Resolution Resolution;
|
||||
typedef struct _SureBox SureBox;
|
||||
|
@ -314,7 +314,7 @@ _basic_check_changed(E_Config_Dialog *cfd __UNUSED__, E_Config_Dialog_Data *cfda
|
|||
rt = eina_list_nth(res->rates, r);
|
||||
if (!rt) return 0;
|
||||
|
||||
return ((res->size.width != cfdata->orig_size.width) ||
|
||||
return (res->size.width != cfdata->orig_size.width) ||
|
||||
(res->size.height != cfdata->orig_size.height) ||
|
||||
(cfdata->has_rates && (*rt != cfdata->orig_rate)) ||
|
||||
(cfdata->can_rotate &&
|
||||
|
@ -323,7 +323,7 @@ _basic_check_changed(E_Config_Dialog *cfd __UNUSED__, E_Config_Dialog_Data *cfda
|
|||
(((!(cfdata->orig_flip & ECORE_X_RANDR_ORIENTATION_FLIP_X)) !=
|
||||
(!cfdata->flip_x)) ||
|
||||
((!(cfdata->orig_flip & ECORE_X_RANDR_ORIENTATION_FLIP_Y)) !=
|
||||
(!cfdata->flip_y)))));
|
||||
(!cfdata->flip_y))));
|
||||
}
|
||||
|
||||
static int
|
||||
|
@ -357,7 +357,7 @@ _basic_apply_data(E_Config_Dialog *cfd, E_Config_Dialog_Data *cfdata)
|
|||
sb = E_NEW(SureBox, 1);
|
||||
sb->cfd = cfd;
|
||||
sb->cfdata = cfdata;
|
||||
_surebox_dialog_cb_yes (sb, NULL);
|
||||
_surebox_dialog_cb_yes(sb, NULL);
|
||||
}
|
||||
else
|
||||
_surebox_new(cfd, cfdata);
|
||||
|
@ -422,8 +422,8 @@ _basic_create_widgets(E_Config_Dialog *cfd EINA_UNUSED, Evas *evas, E_Config_Dia
|
|||
|
||||
for (i = 0; i < (s - 1); i++)
|
||||
{
|
||||
Resolution * res;
|
||||
Ecore_X_Randr_Refresh_Rate * rates;
|
||||
Resolution *res;
|
||||
Ecore_X_Randr_Refresh_Rate *rates;
|
||||
int r = 0, j;
|
||||
|
||||
res = E_NEW(Resolution, 1);
|
||||
|
@ -435,7 +435,7 @@ _basic_create_widgets(E_Config_Dialog *cfd EINA_UNUSED, Evas *evas, E_Config_Dia
|
|||
rates = ecore_x_randr_screen_primary_output_refresh_rates_get(man->root, i, &r);
|
||||
for (j = 0; j < r; j++)
|
||||
{
|
||||
Ecore_X_Randr_Refresh_Rate * rt;
|
||||
Ecore_X_Randr_Refresh_Rate *rt;
|
||||
|
||||
cfdata->has_rates = EINA_TRUE;
|
||||
rt = E_NEW(Ecore_X_Randr_Refresh_Rate, 1);
|
||||
|
@ -518,7 +518,7 @@ _load_resolutions(E_Config_Dialog_Data *cfdata)
|
|||
|
||||
evas = evas_object_evas_get(cfdata->res_list);
|
||||
if (e_widget_ilist_count(cfdata->res_list) !=
|
||||
(int) eina_list_count(cfdata->resolutions))
|
||||
(int)eina_list_count(cfdata->resolutions))
|
||||
{
|
||||
evas_event_freeze(evas);
|
||||
edje_freeze();
|
||||
|
@ -647,3 +647,4 @@ _deferred_norates_error(void *data __UNUSED__)
|
|||
"the resolution, which may cause <hilight>damage</hilight> to your screen."));
|
||||
return ECORE_CALLBACK_CANCEL;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue