X-Git-Url: https://git.dogcows.com/gitweb?a=blobdiff_plain;f=openbox%2Fprompt.h;h=3c46c3097e844b8d8c0f30710beb61514b81a077;hb=567fd15eebdd44e50cef140419dbf7a336708109;hp=007dae934cedc75b1e6f7b6e7e96dcdeff969495;hpb=bb557f06a6828a95ee94c7579919dec1ee014484;p=chaz%2Fopenbox diff --git a/openbox/prompt.h b/openbox/prompt.h index 007dae93..3c46c309 100644 --- a/openbox/prompt.h +++ b/openbox/prompt.h @@ -21,7 +21,7 @@ #include "window.h" #include "geom.h" -#include "render/render.h" +#include "obrender/render.h" #include #include @@ -38,12 +38,13 @@ struct _ObPromptElement { gint x, y, width, height; gboolean pressed; + gboolean hover; gint result; }; struct _ObPrompt { - InternalWindow super; + ObInternalWindow super; gint ref; guint event_mask; @@ -100,7 +101,7 @@ void prompt_shutdown(gboolean reconfig); callback function returns TRUE. @param data User defined data which will be passed to the callback */ -ObPrompt* prompt_new(const gchar *msg, +ObPrompt* prompt_new(const gchar *msg, const gchar *title, const ObPromptAnswer *answers, gint n_answers, gint default_result, gint cancel_result, ObPromptCallback func, ObPromptCleanup cleanup, @@ -116,6 +117,7 @@ gboolean prompt_key_event(ObPrompt *self, XEvent *e); gboolean prompt_mouse_event(ObPrompt *self, XEvent *e); void prompt_cancel(ObPrompt *self); -void prompt_show_message(const gchar *msg, const gchar *answer); +ObPrompt* prompt_show_message(const gchar *msg, const gchar *title, + const gchar *answer); #endif