Tried to fix problem with wrong fonts in tool tips.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_2_BRANCH@7331 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Robert Roebling
2000-05-01 19:04:30 +00:00
parent cd73d539f6
commit 076e41016d
8 changed files with 26 additions and 28 deletions

View File

@@ -21,6 +21,8 @@
#include "gtk/gtk.h"
#include "gdk/gdk.h"
extern GdkFont *GtkGetDefaultGuiFont();
//-----------------------------------------------------------------------------
// global data
//-----------------------------------------------------------------------------
@@ -72,7 +74,9 @@ void wxToolTip::Apply( wxWindow *win )
g_style->fg[GTK_STATE_NORMAL] = ss_fg;
g_style->bg[GTK_STATE_NORMAL] = ss_bg;
gdk_font_unref( g_style->font );
g_style->font = gdk_font_ref( GtkGetDefaultGuiFont() );
gtk_widget_set_style( ss_tooltips->tip_window, g_style );
#else
gtk_tooltips_set_colors( ss_tooltips, &ss_bg, &ss_fg );