Closed Bug 1155943 Opened 9 years ago Closed 9 years ago

We already depend on glib higher than 2.2, drop checking for functions from older versions

Categories

(Core :: General, defect)

x86_64
Linux
defect
Not set
minor

Tracking

()

RESOLVED FIXED
mozilla40
Tracking Status
firefox40 --- fixed

People

(Reporter: firefox, Assigned: firefox)

References

Details

Attachments

(1 file, 1 obsolete file)

Attached patch drop_pre_glib2.2_support.patch (obsolete) — Splinter Review
It's in toolkit/xre/nsAppRunner.cpp where it checks for the functions to exist before calling them.   We can just call them directly.
Comment on attachment 8594287 [details] [diff] [review]
drop_pre_glib2.2_support.patch

Should be a relatively clean review if you agree with making Firefox/GTK hard depend on glib2.2+ (which I believe it likely does already)

Thanks!
Attachment #8594287 - Flags: review?(karlt)
Comment on attachment 8594287 [details] [diff] [review]
drop_pre_glib2.2_support.patch

Thanks.

>+  //these are both defined in glib2.2 and higher.

Please leave out this comment.
gtk_window_set_auto_startup_notification is not a GLib function, but is available from GTK+ 2.2.  This kind of comment could be helpful in the commit message, but is not necessary or helpful inline for understanding the code.
Attachment #8594287 - Flags: review?(karlt) → review+
Thanks for the review! I believe I made this patch correctly for check-in.
Attachment #8594765 - Flags: checkin?
Comment on attachment 8594765 [details] [diff] [review]
0001-We-already-depend-on-glib2.2-and-gtk2.2-so-drop-the-.patch

Review of attachment 8594765 [details] [diff] [review]:
-----------------------------------------------------------------

Try 2.
Attachment #8594765 - Flags: checkin? → checkin?(karlt)
Attachment #8594287 - Attachment is obsolete: true
Comment on attachment 8594765 [details] [diff] [review]
0001-We-already-depend-on-glib2.2-and-gtk2.2-so-drop-the-.patch

In the future, the checkin-needed bug keyword is actually the preferred way of requesting checkin :)

Thanks for the patch!
Attachment #8594765 - Flags: checkin?(karlt)
https://hg.mozilla.org/mozilla-central/rev/4abfadb3b726
Status: NEW → RESOLVED
Closed: 9 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla40
Depends on: 1157413
No longer blocks: 1157869
Depends on: 1157869
Depends on: 1158154
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: