* BUG: Make gb.gtk compile with GTK+ 2.16.


git-svn-id: svn://localhost/gambas/trunk@5067 867c0c6c-44f3-4631-809d-bfa615b0a4ec
This commit is contained in:
Benoît Minisini 2012-08-22 09:18:45 +00:00
parent 5133ebfb7f
commit 93ef02b4e8
3 changed files with 24 additions and 9 deletions

View file

@ -246,14 +246,6 @@ double gMouse::getAxis(GdkAxisUse axis)
return 0.0;
}
#if GTK_CHECK_VERSION(2, 22, 0)
#else
static int gdk_device_get_source(GdkDevice *device)
{
return device->source;
}
#endif
int gMouse::getType()
{

View file

@ -1673,3 +1673,19 @@ void gt_lower_widget(GtkWidget *widget)
if (parent)
gtk_container_foreach(parent, (GtkCallback)add_again, widget);
}
#if GTK_CHECK_VERSION(2, 22, 0)
#else
int gdk_device_get_source(GdkDevice *device)
{
return device->source;
}
GtkWidget *_gtk_window_group_get_current_grab(GtkWindowGroup *window_group);
GtkWidget *gtk_window_group_get_current_grab(GtkWindowGroup *window_group)
{
return _gtk_window_group_get_current_grab(window_group);
}
#endif

View file

@ -138,7 +138,7 @@ gPicture *gt_grab_window(GdkWindow *win, int x = 0, int y = 0, int w = 0, int h
void gt_layout_alignment(PangoLayout *layout, float w, float h, float *tw, float *th, int align, float *offX, float *offY);
#if GTK_MAJOR_VERSION >= 2 && GTK_MINOR_VERSION >= 18
#if GTK_CHECK_VERSION(2, 18, 0)
#else
void
gtk_widget_set_can_focus(GtkWidget *widget, gboolean can_focus);
@ -146,4 +146,11 @@ gtk_widget_set_can_focus(GtkWidget *widget, gboolean can_focus);
void gt_lower_widget(GtkWidget *widget);
#if GTK_CHECK_VERSION(2, 22, 0)
#else
int gdk_device_get_source(GdkDevice *device);
GtkWidget *gtk_window_group_get_current_grab(GtkWindowGroup *window_group);
#endif
#endif