Skip to content

Commit

Permalink
ensure backwards compatibility to gtk-3.0 < 3.12
Browse files Browse the repository at this point in the history
  • Loading branch information
Artox committed Dec 3, 2015
1 parent fce0af9 commit e7e7d2f
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/gtktechnology.c
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,13 @@ static void gtk_technology_class_init(GtkTechnologyClass *klass)
sizeof(GtkTechnologyPrivate));
}

// on 3.12.x the _start and _end versions of these functions were renamed
// make sure to still support the old names
#if ! GTK_CHECK_VERSION(3,12,0)
#define gtk_widget_set_margin_start gtk_widget_set_margin_left
#define gtk_widget_set_margin_end gtk_widget_set_margin_right
#endif

static void gtk_technology_init(GtkTechnology *technology)
{
GtkTechnologyPrivate *priv;
Expand Down

0 comments on commit e7e7d2f

Please sign in to comment.