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

ensure backwards compatibility to gtk-3.0 < 3.12 #27

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
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
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