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)
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)
|
5.84 KB,
patch
|
ted
:
review-
|
Details | Diff | Splinter Review |
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.
Comment 1•17 years ago
|
||
no need... just create a pixbuf from the png itself.
Ventron, want to take this on?
| Reporter | ||
Comment 2•17 years ago
|
||
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.
Comment 3•17 years ago
|
||
(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.
Updated•17 years ago
|
Comment 5•17 years ago
|
||
David, considering the good work in bug 473337, think you could work up a quick patch for this bug, too? Thanks!
Updated•17 years ago
|
Whiteboard: [polish-easy] [polish-visual][icon-3.1][icon-complete]
Comment 6•17 years ago
|
||
Note png files are here: https://bugzilla.mozilla.org/attachment.cgi?id=356664
Updated•17 years ago
|
Assignee: ddahl → nobody
Updated•17 years ago
|
Whiteboard: [polish-easy] [polish-visual][icon-3.1][icon-complete] → [polish-easy] [polish-visual][icon-shiretoko][icon-complete]
Comment 8•17 years ago
|
||
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.
Comment 9•17 years ago
|
||
Untested patch I just wrote to make faaborg happy.
Assignee: nobody → reed
Status: NEW → ASSIGNED
| Reporter | ||
Comment 10•17 years ago
|
||
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
Comment 11•17 years ago
|
||
(this has my pre-approval to land on mozilla-central once reviewed, please nominate for a191 when that happens)
Comment 12•17 years ago
|
||
mozilla-central only patch.
Attachment #379664 -
Attachment is obsolete: true
Updated•17 years ago
|
Attachment #380400 -
Flags: review?(ted.mielczarek)
Comment 13•17 years ago
|
||
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...
Comment 14•17 years ago
|
||
/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...
| Reporter | ||
Comment 15•17 years ago
|
||
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
Comment 16•17 years ago
|
||
Attachment #380400 -
Attachment is obsolete: true
Attachment #381720 -
Flags: review?(ted.mielczarek)
Attachment #380400 -
Flags: review?(ted.mielczarek)
| Reporter | ||
Comment 17•17 years ago
|
||
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-
Comment 18•17 years ago
|
||
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]
Comment 20•4 years ago
|
||
The bug assignee is inactive on Bugzilla, so the assignee is being reset.
Assignee: reed → nobody
Status: ASSIGNED → NEW
Updated•4 years ago
|
Severity: normal → S3
Comment 21•2 years ago
|
||
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.
Description
•