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

Markdown: Add support for GTK3 #94

Merged
merged 1 commit into from
May 10, 2013
Merged

Conversation

codebrainz
Copy link
Member

This PR adds support for GTK3 by adjusting build system as well as adding some GTK2-compatibility code.

TODO: Waf build system support for GTK+3 Markdown plugin.

bottom_attach, xoptions, yoptions, 0, 0);
#else
gtk_grid_attach(table, child, left_attach, top_attach,
right_attach - left_attach, bottom_attach - top_attach);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You don't use the [xy]options at all in the GTK3 code path, is that sensible? I mean, if they really aren't useful, maybe just remove them altogether and keep always the same default in the GTK2 code?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah, that or to find the GtkGrid equivalent (this is first time I used that widget), since there are a few places in the code where it uses GTK_FILL | GTK_EXPAND rather than just GTK_FILL, for example.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If you use them you should rather fix the GtkGrid code indeed. The equivalent on GTK3 is per-widget align/expand (you can see https://developer.gnome.org/gtk3/stable/ch28s02.html).

@b4n
Copy link
Member

b4n commented Mar 22, 2013

Looks a bit pedantic to wrap the GtkTable stuff, but otherwise it looks OK.

@codebrainz
Copy link
Member Author

GtkTable is deprecated since GTK+ 3.4, so rather than cause a bunch of compiler warnings, I figured providing a compatibility wrapper would be better.

frlan added a commit that referenced this pull request May 10, 2013
Markdown: Add support for GTK3
@frlan frlan merged commit 8e6adf3 into geany:master May 10, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants