make grab dialog text read a bit more clearly

This commit is contained in:
Mike Blumenkrantz 2017-08-21 10:16:30 -04:00
parent c31cb51499
commit 40df7bddc8
2 changed files with 7 additions and 13 deletions

View File

@ -1,12 +1,11 @@
#include "e.h" #include "e.h"
#define TEXT_PRESS_KEY_SEQUENCE _("Please press key combination,<ps/><ps/>" \ #define TEXT_PRESS_KEY_SEQUENCE _("Please press a key combination.<ps/><ps/>" \
"or <hilight>Escape</hilight> to abort.") "Press <hilight>Escape</hilight> to abort.")
#define TEXT_PRESS_MOUSE_BINIDING_SEQUENCE _("Please hold any modifier you want<ps/>" \ #define TEXT_PRESS_MOUSE_BINDING_SEQUENCE _("Please hold any modifier you want<ps/>" \
"and press any button on your mouse,<ps/>or roll a" \ "and press any button on your mouse<ps/>" \
" wheel, to assign mouse binding." \ "or roll a wheel to assign mouse binding.<ps/><ps/>" \
"<ps/>Press <hilight>Escape</hilight> to abort.") "Press <hilight>Escape</hilight> to abort.")
static Eina_Bool static Eina_Bool
_e_grab_dialog_key_handler(void *data, int type EINA_UNUSED, Ecore_Event_Key *ev) _e_grab_dialog_key_handler(void *data, int type EINA_UNUSED, Ecore_Event_Key *ev)
{ {
@ -117,7 +116,7 @@ e_grab_dialog_show(Evas_Object *parent, Eina_Bool is_mouse, Ecore_Event_Handler_
eg->dia = e_dialog_new(parent, "E", "_mousebind_getmouse_dialog"); eg->dia = e_dialog_new(parent, "E", "_mousebind_getmouse_dialog");
e_dialog_title_set(eg->dia, _("Mouse Binding Combination")); e_dialog_title_set(eg->dia, _("Mouse Binding Combination"));
e_dialog_icon_set(eg->dia, "preferences-desktop-mouse", 48); e_dialog_icon_set(eg->dia, "preferences-desktop-mouse", 48);
e_dialog_text_set(eg->dia, TEXT_PRESS_MOUSE_BINIDING_SEQUENCE); e_dialog_text_set(eg->dia, TEXT_PRESS_MOUSE_BINDING_SEQUENCE);
} }
else else
{ {

View File

@ -3,11 +3,6 @@
#define TEXT_NO_PARAMS _("<None>") #define TEXT_NO_PARAMS _("<None>")
#define EXAMPLE_STRING "example : " #define EXAMPLE_STRING "example : "
#define TEXT_PRESS_MOUSE_BINIDING_SEQUENCE _("Please hold any modifier you want<ps/>" \
"and press any button on your mouse,<ps/>or roll a" \
" wheel, to assign mouse binding." \
"<ps/>Press <hilight>Escape</hilight> to abort.")
static void *_create_data(E_Config_Dialog *cfd); static void *_create_data(E_Config_Dialog *cfd);
static void _free_data(E_Config_Dialog *cfd, E_Config_Dialog_Data *cfdata); static void _free_data(E_Config_Dialog *cfd, E_Config_Dialog_Data *cfdata);
static int _basic_apply_data(E_Config_Dialog *cfd, E_Config_Dialog_Data *cfdata); static int _basic_apply_data(E_Config_Dialog *cfd, E_Config_Dialog_Data *cfdata);