summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSam Spilsbury <Sam@XPS-SUSE.site>2008-11-29 12:44:36 +0900
committerSam Spilsbury <Sam@XPS-SUSE.site>2008-11-29 12:44:36 +0900
commit7bfda0ad53474a0b1714e9b6f47f1d12671c5962 (patch)
treef3d043967572bebae5e5dc185318ededeb7dfca0
parent49ad054d4bb52e956035ca81572001057f61acaa (diff)
downloadprompt-7bfda0ad53474a0b1714e9b6f47f1d12671c5962.tar.gz
prompt-7bfda0ad53474a0b1714e9b6f47f1d12671c5962.tar.bz2
* The plugin is called prompt, not wiimote
-rw-r--r--prompt.c28
1 files changed, 14 insertions, 14 deletions
diff --git a/prompt.c b/prompt.c
index b68684b..99be5f1 100644
--- a/prompt.c
+++ b/prompt.c
@@ -44,15 +44,15 @@
static int displayPrivateIndex;
-typedef struct _WiimoteDisplay
+typedef struct _PromptDisplay
{
int screenPrivateIndex;
CompTimeoutHandle removeTextHandle;
-} WiimoteDisplay;
+} PromptDisplay;
-typedef struct _WiimoteScreen
+typedef struct _PromptScreen
{
PaintOutputProc paintOutput;
int windowPrivateIndex;
@@ -64,20 +64,20 @@ typedef struct _WiimoteScreen
Bool title;
-} WiimoteScreen;
+} PromptScreen;
#define GET_PROMPT_DISPLAY(d) \
- ((WiimoteDisplay *) (d)->base.privates[displayPrivateIndex].ptr)
+ ((PromptDisplay *) (d)->base.privates[displayPrivateIndex].ptr)
#define PROMPT_DISPLAY(d) \
- WiimoteDisplay *ad = GET_PROMPT_DISPLAY (d)
+ PromptDisplay *ad = GET_PROMPT_DISPLAY (d)
#define GET_PROMPT_SCREEN(s, ad) \
- ((WiimoteScreen *) (s)->base.privates[(ad)->screenPrivateIndex].ptr)
+ ((PromptScreen *) (s)->base.privates[(ad)->screenPrivateIndex].ptr)
#define PROMPT_SCREEN(s) \
- WiimoteScreen *as = GET_PROMPT_SCREEN (s, GET_PROMPT_DISPLAY (s->display))
+ PromptScreen *as = GET_PROMPT_SCREEN (s, GET_PROMPT_DISPLAY (s->display))
#define GET_PROMPT_WINDOW(w, as) \
- ((WiimoteWindow *) (w)->base.privates[ (as)->windowPrivateIndex].ptr)
+ ((PromptWindow *) (w)->base.privates[ (as)->windowPrivateIndex].ptr)
#define PROMPT_WINDOW(w) \
- WiimoteWindow *aw = GET_PROMPT_WINDOW (w, \
+ PromptWindow *aw = GET_PROMPT_WINDOW (w, \
GET_PROMPT_SCREEN (w->screen, \
GET_PROMPT_DISPLAY (w->screen->display)))
@@ -359,11 +359,11 @@ static Bool
promptInitScreen (CompPlugin *p,
CompScreen *s)
{
- WiimoteScreen *as;
+ PromptScreen *as;
PROMPT_DISPLAY (s->display);
- as = malloc (sizeof (WiimoteScreen));
+ as = malloc (sizeof (PromptScreen));
if (!as)
return FALSE;
@@ -398,12 +398,12 @@ static Bool
promptInitDisplay (CompPlugin *p,
CompDisplay *d)
{
- WiimoteDisplay *ad;
+ PromptDisplay *ad;
if (!checkPluginABI ("core", CORE_ABIVERSION))
return FALSE;
- ad = malloc (sizeof (WiimoteDisplay));
+ ad = malloc (sizeof (PromptDisplay));
if (!ad)
return FALSE;