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:
@@ -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 );
|
||||
|
Reference in New Issue
Block a user