Added wxAddGrab, wxRemoveGrab for use by popup window implementations
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@36663 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
parent
71b4a9b878
commit
224016a800
@ -131,6 +131,10 @@ inline wxEventType GtkScrollWinTypeToWx(guint scrollType)
|
||||
wxEVT_SCROLLWIN_TOP - wxEVT_SCROLL_TOP;
|
||||
}
|
||||
|
||||
// Needed for implementing e.g. combobox on wxGTK within a modal dialog.
|
||||
void wxAddGrab(wxWindow* window);
|
||||
void wxRemoveGrab(wxWindow* window);
|
||||
|
||||
#ifdef __WXGTK20__
|
||||
// Escapes string so that it is valid Pango markup XML string:
|
||||
WXDLLIMPEXP_CORE wxString wxEscapeStringForPangoMarkup(const wxString& str);
|
||||
|
@ -131,6 +131,10 @@ inline wxEventType GtkScrollWinTypeToWx(guint scrollType)
|
||||
wxEVT_SCROLLWIN_TOP - wxEVT_SCROLL_TOP;
|
||||
}
|
||||
|
||||
// Needed for implementing e.g. combobox on wxGTK within a modal dialog.
|
||||
void wxAddGrab(wxWindow* window);
|
||||
void wxRemoveGrab(wxWindow* window);
|
||||
|
||||
#ifdef __WXGTK20__
|
||||
// Escapes string so that it is valid Pango markup XML string:
|
||||
WXDLLIMPEXP_CORE wxString wxEscapeStringForPangoMarkup(const wxString& str);
|
||||
|
@ -4738,8 +4738,19 @@ wxPoint wxGetMousePosition()
|
||||
|
||||
}
|
||||
|
||||
// Needed for implementing e.g. combobox on wxGTK within a modal dialog.
|
||||
void wxAddGrab(wxWindow* window)
|
||||
{
|
||||
gtk_grab_add( (GtkWidget*) window->GetHandle() );
|
||||
}
|
||||
|
||||
void wxRemoveGrab(wxWindow* window)
|
||||
{
|
||||
gtk_grab_remove( (GtkWidget*) window->GetHandle() );
|
||||
}
|
||||
|
||||
// ----------------------------------------------------------------------------
|
||||
// wxDCModule
|
||||
// wxWinModule
|
||||
// ----------------------------------------------------------------------------
|
||||
|
||||
class wxWinModule : public wxModule
|
||||
@ -4768,4 +4779,3 @@ void wxWinModule::OnExit()
|
||||
gdk_gc_unref( g_eraseGC );
|
||||
}
|
||||
|
||||
// vi:sts=4:sw=4:et
|
||||
|
@ -4738,8 +4738,19 @@ wxPoint wxGetMousePosition()
|
||||
|
||||
}
|
||||
|
||||
// Needed for implementing e.g. combobox on wxGTK within a modal dialog.
|
||||
void wxAddGrab(wxWindow* window)
|
||||
{
|
||||
gtk_grab_add( (GtkWidget*) window->GetHandle() );
|
||||
}
|
||||
|
||||
void wxRemoveGrab(wxWindow* window)
|
||||
{
|
||||
gtk_grab_remove( (GtkWidget*) window->GetHandle() );
|
||||
}
|
||||
|
||||
// ----------------------------------------------------------------------------
|
||||
// wxDCModule
|
||||
// wxWinModule
|
||||
// ----------------------------------------------------------------------------
|
||||
|
||||
class wxWinModule : public wxModule
|
||||
@ -4768,4 +4779,3 @@ void wxWinModule::OnExit()
|
||||
gdk_gc_unref( g_eraseGC );
|
||||
}
|
||||
|
||||
// vi:sts=4:sw=4:et
|
||||
|
Loading…
Reference in New Issue
Block a user