Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix missing gboolean/gpointer when building with FB_GUI_DISABLED #129

Merged
merged 1 commit into from
Feb 26, 2014
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/PluginAuto/X11/PluginWindowX11.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -346,10 +346,10 @@ void PluginWindowX11::InvalidateWindow() const {
}


#if FB_GUI_DISABLED != 1
gboolean PluginWindowX11::idleInvalidate(gpointer win) {
const PluginWindowX11 *w = reinterpret_cast<PluginWindowX11 *>(win);
#if FB_GUI_DISABLED != 1
gdk_window_invalidate_rect(w->getWidgetWindow(), NULL, true);
#endif // FB_GUI_DISABLED != 1
return FALSE;
}
#endif // FB_GUI_DISABLED != 1
5 changes: 2 additions & 3 deletions src/PluginAuto/X11/PluginWindowX11.h
Original file line number Diff line number Diff line change
Expand Up @@ -72,10 +72,9 @@ namespace FB {
GtkWidget *m_container;
GtkWidget *m_canvas;
bool m_focus;
#endif

protected:
static gboolean idleInvalidate(gpointer win);
static gboolean idleInvalidate(gpointer win);
#endif

int32_t m_x;
int32_t m_y;
Expand Down