Mailinglist Archive: opensuse-bugs (16683 mails)

< Previous Next >
[Bug 404818] Yast GTK package manager icons
  • From: bugzilla_noreply@xxxxxxxxxx
  • Date: Sun, 29 Jun 2008 04:33:25 -0600 (MDT)
  • Message-id: <20080629103325.B0CDBCC7AF@xxxxxxxxxxxxxxxxxxxxxx>
https://bugzilla.novell.com/show_bug.cgi?id=404818

User rpmcruz@xxxxxxxxxxxxxxxxxxx added comment
https://bugzilla.novell.com/show_bug.cgi?id=404818#c5





--- Comment #5 from Ricardo Cruz <rpmcruz@xxxxxxxxxxxxxxxxxxx> 2008-06-29
04:33:23 MDT ---
(In reply to comment #4 from Michael Monreal)
Btw it's also possible to store .png pixmaps in the executable (see
GdkPixdata)
but storing them separately (or using themed icons) is "better" of cause.

Sure, I did use the word "easily". One should be able to easily write some code
that grabs any binary file and write those bytes into an inlined array. In the
end, we would paste something like:
const unsigned char png_data[] = { 0xff, 0x6a, .... };
A XPM, on the other hand, is already done and sliced for you. The XPM file
already looks like something like:
const char *image_data = "jkhelu3534i234wekljw ... ";

Anyway, compiling this data into the executable isn't that good of an idea.
These data isn't even used for anything other than the package selector thing.
But it's just four or five icons, and our executable is much smaller than the
qt one already, so I didn't bother going through all the trouble to make it
work for automake. (I'm only comfortable with plain old Makefile files...)
However, we want to ship our icons in separated files from the executable...
Maybe now will be a good time to kill a few birds at once. ;)


--
Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.

< Previous Next >
References