diff options
Diffstat (limited to 'src/bin/e_randr_12_ask_dialog.c')
-rw-r--r-- | src/bin/e_randr_12_ask_dialog.c | 25 |
1 files changed, 14 insertions, 11 deletions
diff --git a/src/bin/e_randr_12_ask_dialog.c b/src/bin/e_randr_12_ask_dialog.c index 1934342908..463c3d5700 100644 --- a/src/bin/e_randr_12_ask_dialog.c +++ b/src/bin/e_randr_12_ask_dialog.c @@ -7,7 +7,8 @@ static void _e_randr_ask_memorize_monitor_cb(void *data, E_Dialog *dia); static E_Randr_Output_Info *_ask_output_info = NULL; -EINTERN void e_randr_12_ask_dialog_new(E_Randr_Output_Info *oi) +EINTERN void +e_randr_12_ask_dialog_new(E_Randr_Output_Info *oi) { E_Dialog *dia = NULL; @@ -19,10 +20,10 @@ EINTERN void e_randr_12_ask_dialog_new(E_Randr_Output_Info *oi) e_dialog_title_set(dia, _("Position of New Monitor")); e_dialog_icon_set(dia, "display", 64); e_dialog_text_set(dia, _("<b>Where</b> should the newly connected monitor be put?")); - e_dialog_button_add(dia, _("Left"), "stock-left", _e_randr_ask_cb, (void*)ECORE_X_RANDR_OUTPUT_POLICY_LEFT); - e_dialog_button_add(dia, _("Right"), "stock-right", _e_randr_ask_cb, (void*)ECORE_X_RANDR_OUTPUT_POLICY_RIGHT); - e_dialog_button_add(dia, _("Above"), "stock-top", _e_randr_ask_cb, (void*)ECORE_X_RANDR_OUTPUT_POLICY_ABOVE); - e_dialog_button_add(dia, _("Below"), "stock-bottom", _e_randr_ask_cb, (void*)ECORE_X_RANDR_OUTPUT_POLICY_BELOW); + e_dialog_button_add(dia, _("Left"), "stock-left", _e_randr_ask_cb, (void *)ECORE_X_RANDR_OUTPUT_POLICY_LEFT); + e_dialog_button_add(dia, _("Right"), "stock-right", _e_randr_ask_cb, (void *)ECORE_X_RANDR_OUTPUT_POLICY_RIGHT); + e_dialog_button_add(dia, _("Above"), "stock-top", _e_randr_ask_cb, (void *)ECORE_X_RANDR_OUTPUT_POLICY_ABOVE); + e_dialog_button_add(dia, _("Below"), "stock-bottom", _e_randr_ask_cb, (void *)ECORE_X_RANDR_OUTPUT_POLICY_BELOW); e_dialog_button_focus_num(dia, 1); e_win_centered_set(dia->win, 1); e_dialog_show(dia); @@ -48,7 +49,8 @@ _close_ret: e_object_del(E_OBJECT(dia)); } -static void e_randr_12_memorize_monitor_dialog_new(void) +static void +e_randr_12_memorize_monitor_dialog_new(void) { E_Dialog *dia = NULL; @@ -58,8 +60,8 @@ static void e_randr_12_memorize_monitor_dialog_new(void) e_dialog_title_set(dia, _("Memorize This Monitor?")); e_dialog_icon_set(dia, "display", 64); e_dialog_text_set(dia, _("Should the position of this monitor be <b>memorized</b>?")); - e_dialog_button_add(dia, _("Yes"), "stock-yes", _e_randr_ask_memorize_monitor_cb, (void*)EINA_TRUE); - e_dialog_button_add(dia, _("No"), "stock-no", _e_randr_ask_memorize_monitor_cb, (void*)EINA_FALSE); + e_dialog_button_add(dia, _("Yes"), "stock-yes", _e_randr_ask_memorize_monitor_cb, (void *)EINA_TRUE); + e_dialog_button_add(dia, _("No"), "stock-no", _e_randr_ask_memorize_monitor_cb, (void *)EINA_FALSE); e_dialog_button_focus_num(dia, 1); e_win_centered_set(dia->win, 1); e_dialog_show(dia); @@ -70,12 +72,13 @@ _e_randr_ask_memorize_monitor_cb(void *data, E_Dialog *dia) { Eina_Bool memorize = (Eina_Bool)(intptr_t)data; const E_Randr_Configuration_Store_Modifier modifier = ( - E_RANDR_CONFIGURATION_STORE_RESOLUTIONS - | E_RANDR_CONFIGURATION_STORE_ARRANGEMENT - | E_RANDR_CONFIGURATION_STORE_ORIENTATIONS); + E_RANDR_CONFIGURATION_STORE_RESOLUTIONS + | E_RANDR_CONFIGURATION_STORE_ARRANGEMENT + | E_RANDR_CONFIGURATION_STORE_ORIENTATIONS); if (memorize) e_randr_store_configuration(modifier); e_object_del(E_OBJECT(dia)); } + |