Closed Bug 473363 Opened 17 years ago Closed 2 years ago

make linux crash reporter client set a window icon

Categories

(Toolkit :: Crash Reporting, defect)

x86
Linux
defect

Tracking

()

RESOLVED WORKSFORME

People

(Reporter: ted, Unassigned)

References

()

Details

(Keywords: polish, Whiteboard: [polish-easy] [polish-visual][icon-shiretoko][icon-complete][polish-p3])

Attachments

(1 file, 2 obsolete files)

Apparently we don't currently set an icon for the Linux crash reporter client. reed suggests we need to call gtk_window_set_icon: http://library.gnome.org/devel/gtk/unstable/GtkWindow.html#gtk-window-set-icon I suppose since we have multiple sizes, though, we might want to use gtk_window_set_icon_list: http://library.gnome.org/devel/gtk/unstable/GtkWindow.html#gtk-window-set-icon-list Presumably we need to compile the PNGs into XPM or something like that.
no need... just create a pixbuf from the png itself. Ventron, want to take this on?
Seems lame to stick another image file in the app dir though. Also, it'd be nice to support multiple icon sizes, no? I sure don't want to ship multiple icon sizes as png files sitting in the app dir.
(In reply to comment #2) > Seems lame to stick another image file in the app dir though. GTK+ can do the pixbuf conversion itself... it just needs the .png file(s). > Also, it'd be > nice to support multiple icon sizes, no? I sure don't want to ship multiple > icon sizes as png files sitting in the app dir. True... still looking to see if that's possible. XPM is deprecated, so we shouldn't use it, though.
use the windows .ico format :)
David, considering the good work in bug 473337, think you could work up a quick patch for this bug, too? Thanks!
Whiteboard: [polish-easy] [polish-visual][icon-3.1][icon-complete]
Yeah - looks like I have a new linux bug. cool.
Assignee: nobody → ddahl
Assignee: ddahl → nobody
Whiteboard: [polish-easy] [polish-visual][icon-3.1][icon-complete] → [polish-easy] [polish-visual][icon-shiretoko][icon-complete]
This is actually the only remaining active icon bug on Linux right now. It would be awesome if we could get a patch before we wrap up work on 3.5.
Attached patch patch - v1 (untested) (obsolete) — — Splinter Review
Untested patch I just wrote to make faaborg happy.
Assignee: nobody → reed
Status: NEW → ASSIGNED
You'll need to add crashreporter.png to packages-static (for Firefox and all the other apps shipping it): http://mxr.mozilla.org/mozilla-central/source/browser/installer/unix/packages-static
(this has my pre-approval to land on mozilla-central once reviewed, please nominate for a191 when that happens)
Attached patch patch - v2 (obsolete) — — Splinter Review
mozilla-central only patch.
Attachment #379664 - Attachment is obsolete: true
Attachment #380400 - Flags: review?(ted.mielczarek)
As far as I can tell, only browser's packages-static needs the addition, as nobody else (mail or calendar) seems to have a unix-specific packages-static. Please correct me if I'm wrong or if I'm missing some important app that runs on Linux...
/tools/gcc/bin/g++ -o crashreporter -fno-rtti -fno-exceptions -Wall -Wpointer-arith -Woverloaded-virtual -Wsynth -Wno-ctor-dtor-privacy -Wno-non-virtual-dtor -Wcast-align -Wno-invalid-offsetof -Wno-long-long -pedantic -gstabs+ -fno-strict-aliasing -fshort-wchar -pthread -pipe -I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/pango-1.0 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/freetype2 -I/usr/include/libpng12 -I/usr/include/gtk-unix-print-2.0 -pthread -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -DORBIT2=1 -pthread -I/usr/include/gconf/2 -I/usr/include/orbit-2.0 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -DNDEBUG -DTRIMMED -Os -freorder-blocks -fno-reorder-functions -finline-limit=50 crashreporter.o crashreporter_linux.o http_upload.o -lpthread -Wl,-rpath-link,/builds/slave/sendchange-linux-hg/build/objdir/dist/bin -Wl,-rpath-link,/usr/local/lib -L../../../dist/bin -L../../../dist/lib ../../../toolkit/crashreporter/google-breakpad/src/common/linux/libbreakpad_linux_common_s.a -lasound -ldl -lm -L/lib -lgtk-x11-2.0 -latk-1.0 -lgdk-x11-2.0 -lgdk_pixbuf-2.0 -lm -lpangocairo-1.0 -lpango-1.0 -lcairo -lgobject-2.0 -lgmodule-2.0 -ldl -lglib-2.0 -pthread -L/lib -lgthread-2.0 -lglib-2.0 -pthread -L/lib -lgconf-2 -lORBit-2 -lm -lgmodule-2.0 -ldl -lgthread-2.0 -lglib-2.0 /builds/slave/sendchange-linux-hg/build/objdir/config/nsinstall -R -m 755 crashreporter ../../../dist/bin make[6]: *** No rule to make target `crashreporter.png', needed by `libs'. Stop. Need to figure that out...
Don't bother listing crashreporter.png as a dependency of libs::, that rule will get run unconditionally. Just use $(INSTALL) $(srcdir)/crashreporter.png $(DIST)/bin
Attached patch patch - v3 — — Splinter Review
Attachment #380400 - Attachment is obsolete: true
Attachment #381720 - Flags: review?(ted.mielczarek)
Attachment #380400 - Flags: review?(ted.mielczarek)
Comment on attachment 381720 [details] [diff] [review] patch - v3 + GdkPixbuf* gPixbuf = gdk_pixbuf_new_from_file(kIconFile, NULL); You can't just pass a relative filename here, the app dir might not be the working dir. You need to build an absolute path. See: http://mxr.mozilla.org/mozilla-central/source/toolkit/crashreporter/client/crashreporter_linux.cpp#749 On a related note, since this isn't an animated gif, can we just compile it to xpm and #include that instead of shipping another file in the appdir? (I couldn't do that with the throbber because there's apparently no API to load an animated pixmap from a buffer.)
Attachment #381720 - Flags: review?(ted.mielczarek) → review-
This bug's priority relative to the set of other polish bugs is: P3 - Polish issue that is in a secondary interface, occasionally encountered, or is not easily identifiable. Hopefully people don't encounter the crash reporter interface too often :)
Whiteboard: [polish-easy] [polish-visual][icon-shiretoko][icon-complete] → [polish-easy] [polish-visual][icon-shiretoko][icon-complete][polish-p3]

The bug assignee is inactive on Bugzilla, so the assignee is being reset.

Assignee: reed → nobody
Status: ASSIGNED → NEW
Severity: normal → S3

The new crash reporter client sets a default window icon.

Status: NEW → RESOLVED
Closed: 2 years ago
Resolution: --- → WORKSFORME
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: