diff options
author | Anders Carlsson <andersca@gnu.org> | 2002-05-08 16:24:28 +0000 |
---|---|---|
committer | Anders Carlsson <andersca@src.gnome.org> | 2002-05-08 16:24:28 +0000 |
commit | 0494b044d50d60e153f5197ea130e7db57a97824 (patch) | |
tree | 81d912913ab5855cea45bab23d51c8536ec62350 /src/fixedtip.c | |
parent | 3f7203a3a4d20a4c699475d74467afae579341d3 (diff) | |
download | metacity-0494b044d50d60e153f5197ea130e7db57a97824.tar.gz metacity-0494b044d50d60e153f5197ea130e7db57a97824.tar.bz2 |
Add multi-screen support. Also add patch by Erwann Chenede to make
2002-05-08 Anders Carlsson <andersca@gnu.org>
* configure.in:
* src/display.c: (meta_display_open):
* src/fixedtip.c: (meta_fixed_tip_show):
* src/fixedtip.h:
* src/frames.c: (meta_frames_new), (show_tip_now):
* src/frames.h:
* src/menu.c: (meta_window_menu_new):
* src/ui.c: (meta_ui_new):
Add multi-screen support. Also add patch by Erwann Chenede
to make tooltips appear on the correct screen.
Diffstat (limited to 'src/fixedtip.c')
-rw-r--r-- | src/fixedtip.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/fixedtip.c b/src/fixedtip.c index fb016a3..690576b 100644 --- a/src/fixedtip.c +++ b/src/fixedtip.c @@ -36,13 +36,16 @@ expose_handler (GtkTooltips *tooltips) } void -meta_fixed_tip_show (Display *xdisplay, +meta_fixed_tip_show (Display *xdisplay, int screen_number, int root_x, int root_y, const char *markup_text) { if (tip == NULL) { tip = gtk_window_new (GTK_WINDOW_POPUP); + gtk_window_set_screen (GTK_WINDOW (tip), + gdk_display_get_screen (gdk_get_default_display (), + screen_number)); gtk_widget_set_app_paintable (tip, TRUE); gtk_window_set_policy (GTK_WINDOW (tip), FALSE, FALSE, TRUE); gtk_widget_set_name (tip, "gtk-tooltips"); |