RESOLVED FIXED 26835
[GTK] GtkLauncher depends on gtk+2-2.15 because of gtk_orientable_set_orientation()
https://bugs.webkit.org/show_bug.cgi?id=26835
Summary [GTK] GtkLauncher depends on gtk+2-2.15 because of gtk_orientable_set_orienta...
Adrien Nader
Reported 2009-06-30 04:04:49 PDT
Currently, compilation of GtkLauncher will fail if gtk+2 >= 2.15 isn't available because of gtk_orientable_set_orientation(). That bug was introduced in r45319 (bug #26583)
Attachments
Patch to revert to "previous" (pre 2.15) api call (535 bytes, patch)
2009-06-30 04:07 PDT, Adrien Nader
no flags
Use new api for gtk+2 >= 2.15.0, old otherwise (595 bytes, patch)
2009-06-30 04:41 PDT, Adrien Nader
jmalonzo: review+
Adrien Nader
Comment 1 2009-06-30 04:07:10 PDT
Created attachment 32048 [details] Patch to revert to "previous" (pre 2.15) api call The patch partially reverts the patch from 26583 (landed in r45319) which removed api calls which will be deprecated in gtk+3. Wrapping that in #ifdef...#else...#endif looks like a nice solution (I'd done it if I had known what to check for).
Adrien Nader
Comment 2 2009-06-30 04:41:20 PDT
Created attachment 32050 [details] Use new api for gtk+2 >= 2.15.0, old otherwise Updated patch which use GTk_CHECK_VERSION to use the new code when gtk+2 >= 2.15 is used, the old one instead. Also, the former patch had the end of its lines truncated.
Jan Alonzo
Comment 3 2009-06-30 04:51:24 PDT
Comment on attachment 32050 [details] Use new api for gtk+2 >= 2.15.0, old otherwise > +#if GTK_CHECK_VERSION(2,15,0) > gtk_orientable_set_orientation (GTK_ORIENTABLE (toolbar), GTK_ORIENTATION_HORIZONTAL); > +#else > + gtk_toolbar_set_orientation(GTK_TOOLBAR(toolbar), GTK_ORIENTATION_HORIZONTAL); > +#endif The spacing should be fixed before landing. r=me.
Jan Alonzo
Comment 4 2009-06-30 19:28:35 PDT
(In reply to comment #3) > (From update of attachment 32050 [details] [review]) > > +#if GTK_CHECK_VERSION(2,15,0) > > gtk_orientable_set_orientation (GTK_ORIENTABLE (toolbar), GTK_ORIENTATION_HORIZONTAL); > > +#else > > + gtk_toolbar_set_orientation(GTK_TOOLBAR(toolbar), GTK_ORIENTATION_HORIZONTAL); > > +#endif > > The spacing should be fixed before landing. r=me. > Landed in r45415.
Note You need to log in before you can comment on or make changes to this bug.