Skip to content

Commit

Permalink
Backward GTK 3.6 compatibility
Browse files Browse the repository at this point in the history
Previous commit fixed build against new GTK, but broke build against GTK 3.6.x.
Adding compatibility wrap-up to fix build for older GTK as well.
  • Loading branch information
miska committed Apr 24, 2013
1 parent 3df9030 commit 4cd6874
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/ygtktextview.c
Expand Up @@ -39,7 +39,11 @@ static void select_all_activate_cb (GtkMenuItem *item, GtkTextBuffer *buffer)
gtk_text_buffer_select_range (buffer, &start, &end);
}

#if GTK_CHECK_VERSION(3, 8, 0)
static void ygtk_text_view_populate_popup (GtkTextView *view, GtkWidget *menu)
#else
static void ygtk_text_view_populate_popup (GtkTextView *view, GtkMenu *menu)
#endif
{
if (gtk_text_view_get_editable (view))
return;
Expand Down

0 comments on commit 4cd6874

Please sign in to comment.