[GB.GTK3]
* BUG: Fix compilation with GTK+ version < 3.14. git-svn-id: svn://localhost/gambas/trunk@7802 867c0c6c-44f3-4631-809d-bfa615b0a4ec
This commit is contained in:
parent
bad1f7398f
commit
f0a058e675
@ -151,7 +151,11 @@ static gboolean cb_check_draw(GtkWidget *wid, cairo_t *cr, gMenu *menu)
|
||||
state = gtk_widget_get_state_flags(wid);
|
||||
|
||||
if (menu->checked())
|
||||
state = (GtkStateFlags)((int)state | GTK_STATE_FLAG_ACTIVE | GTK_STATE_FLAG_CHECKED);
|
||||
state = (GtkStateFlags)((int)state | GTK_STATE_FLAG_ACTIVE
|
||||
#if GTK_CHECK_VERSION(3, 14, 0)
|
||||
| GTK_STATE_FLAG_CHECKED
|
||||
#endif
|
||||
);
|
||||
|
||||
gtk_widget_set_state_flags(item, state, true);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user