summaryrefslogtreecommitdiff
path: root/src/fixedtip.c
diff options
context:
space:
mode:
authorrhp <rhp>2001-06-30 23:17:52 +0000
committerrhp <rhp>2001-06-30 23:17:52 +0000
commit43f807c5e16ca46ef3de02656c0b9f3b4ba0e940 (patch)
tree2f9f1660816ce1d9e2e6e76667cb9a9c90aa13cb /src/fixedtip.c
parented2af7d22f0b8b945f89757bae0b4005689afac8 (diff)
downloadmetacity-43f807c5e16ca46ef3de02656c0b9f3b4ba0e940.tar.gz
metacity-43f807c5e16ca46ef3de02656c0b9f3b4ba0e940.tar.bz2
...
Diffstat (limited to 'src/fixedtip.c')
-rw-r--r--src/fixedtip.c9
1 files changed, 7 insertions, 2 deletions
diff --git a/src/fixedtip.c b/src/fixedtip.c
index bb12e40..fb016a3 100644
--- a/src/fixedtip.c
+++ b/src/fixedtip.c
@@ -36,7 +36,8 @@ expose_handler (GtkTooltips *tooltips)
}
void
-meta_fixed_tip_show (int root_x, int root_y,
+meta_fixed_tip_show (Display *xdisplay,
+ int root_x, int root_y,
const char *markup_text)
{
if (tip == NULL)
@@ -74,5 +75,9 @@ meta_fixed_tip_show (int root_x, int root_y,
void
meta_fixed_tip_hide (void)
{
- gtk_widget_destroy (tip);
+ if (tip)
+ {
+ gtk_widget_destroy (tip);
+ tip = NULL;
+ }
}