After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 151147 - New Toolbox Icons
New Toolbox Icons
Status: RESOLVED FIXED
Product: dia
Classification: Other
Component: general
unspecified
Other Linux
: Normal enhancement
: 0.95
Assigned To: Dia maintainers
Dia maintainers
Depends on:
Blocks:
 
 
Reported: 2004-08-26 18:15 UTC by Steffen Macke
Modified: 2006-04-08 10:41 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
New icons for the dia toolbox. (6.76 KB, application/octet-stream)
2004-08-26 18:17 UTC, Steffen Macke
  Details
Modification of some icons (8.64 KB, image/png)
2004-08-26 21:17 UTC, Domnique Hirigoyen
  Details
.tar.bz2 file containing small changes (5.65 KB, application/octet-stream)
2004-08-29 17:03 UTC, Steffen Macke
  Details
new_dia_icons4.tar.bz2 (7.25 KB, application/octet-stream)
2004-08-29 19:19 UTC, Steffen Macke
  Details
dia_new_icons.diff (15.19 KB, patch)
2004-08-29 19:22 UTC, Steffen Macke
none Details | Review
dia_new_icons2.diff (15.11 KB, patch)
2004-08-30 18:24 UTC, Steffen Macke
needs-work Details | Review
new-dia-icons-4.2-tar.bz2 (7.25 KB, application/octet-stream)
2004-08-31 08:47 UTC, Domnique Hirigoyen
  Details

Description Steffen Macke 2004-08-26 18:15:44 UTC
The largely black and white icons of the dia toolbox don't mix
very well with the current GNOME stock tools.

The attached icons have been submitted to the dia mailing list.

I supprt Alan's statement to take over the stock icons from the GIMP
for Modify, Zoom, Scroll, and Text.
Comment 1 Steffen Macke 2004-08-26 18:17:02 UTC
Created attachment 30987 [details]
New icons for the dia toolbox.
Comment 2 Steffen Macke 2004-08-26 18:20:23 UTC
Lars, Hans: I'm not sure what's the best way to switch from XPM to PNG
for these icons (I think it's a good chance to do this at this stage).
If you give one example (or some hints), I can repeat this
for the other icons.
Comment 3 Lars Clausen 2004-08-26 19:36:34 UTC
Adding PATCH keyword.

Hints I can give:  Look in app/pixmaps, there's a mix of both.  See Makefile.am
for what is required to do.  However, there's some programming to do, as the
ToolButton struct assumes XPM.  Not as trivial as it ought to be:(  I would
prefer to get rid of all XPM eventually.
Comment 4 Domnique Hirigoyen 2004-08-26 21:17:17 UTC
Created attachment 30992 [details]
Modification of some icons

I have add two polygone icons, one just with a little difference of the first
and the second with one more side (can be change to fit as you want) 
Also do a change to the ellispe icons and add the center of the ellipse tools.

I can put the xcf files too if you want and also change to xpm file type but
with this you lose some transparency effects.
Comment 5 Steffen Macke 2004-08-27 05:12:20 UTC
Should we introduce GtkIconFactory?
Comment 6 Steffen Macke 2004-08-28 09:48:32 UTC
I'm working on a solution for the tools like arc, ellipse, etc.
Comment 7 Steffen Macke 2004-08-29 17:03:48 UTC
Created attachment 31061 [details]
.tar.bz2 file containing small changes

* moved the files to app/pixmaps
* renamed some files
* removed some files that could be replaced by GNOME/GIMP stock icons
Comment 8 Steffen Macke 2004-08-29 19:19:54 UTC
Created attachment 31062 [details]
new_dia_icons4.tar.bz2

Changed the "theme" once more, using existing GNOME and GIMP
stock icons as much as possible.
Comment 9 Steffen Macke 2004-08-29 19:22:11 UTC
Created attachment 31063 [details] [review]
dia_new_icons.diff

The diff against the current CVS.
Use together with the latest dia_icons4.tar.bz2
XPMS still have to be removed from the build process (will do this
after the patch has been accepted)
Comment 10 Steffen Macke 2004-08-29 19:53:47 UTC
The patch seems to mess up Drag'n'Drop icons for some shapes:

(lt-dia:7973): Gtk-CRITICAL **: file gtkdnd.c: line 2127
(gtk_drag_source_set_icon_pixbuf): assertion `GDK_IS_PIXBUF (pixbuf)' failed
Comment 11 Steffen Macke 2004-08-30 18:24:12 UTC
Created attachment 31095 [details] [review]
dia_new_icons2.diff

Fixes the mentioned problems.
Comment 12 Domnique Hirigoyen 2004-08-31 08:47:53 UTC
Created attachment 31124 [details]
new-dia-icons-4.2-tar.bz2

I have done some change to the icons to fit the style of the tools in dia. Also
change the zoom tools to use the same as gimp 2.0. I don't have found a cursor
gnome stock icons for the modify icons. Tell me what you think about this
changes.
Comment 13 Andy Piper 2004-09-28 16:18:09 UTC
Why not share icons with Inkscape and The Gimp? Then we would have consistent
UIs for these apps.
Comment 14 Andy Piper 2004-09-30 16:42:13 UTC
Is there any particular reason why a patch like this should not be applied
straight away?
Comment 15 Lars Clausen 2004-10-31 22:58:41 UTC
On my part, just been too busy, only now have time to go through almost 200 bug
report mails.  Since it is marked PATCH, I will get back to it before the next
release.
Comment 16 Hans Breuer 2004-11-06 18:03:43 UTC
On my part, I just haven't noticed it ;) But now that I have :

Hi Steffen,
one thing I dislike on your patch is the use of even more files floating around
to make Dia work. I also expect this be a performance issue. As already noted on
an other bug gdk-pixbuf-source should be used to include the files and
GtkIconFactory be used to handle them. See:
http://cvs.gnome.org/viewcvs/gimp/libgimpwidgets/gimpstock.c
for a very elaborated example.

app/maklefile.msc alread has the code to turn PNG into a C header file.
Comment 17 Lars Clausen 2004-11-07 08:57:46 UTC
I'm fairly sure the performance difference is small, PNG files are very small
and csourcing them blows them up by a factor 7, which is then included in the
binary.  Even if the opening/closing of the PNG files is faster, it's still I'm
sure much less than the plugin loading, which currently takes most of the
startup time.

The issue of having more files floating around is more important.  Already now,
app/run_dia.sh doesn't take the pngs out of the source dir, so avoiding that
would be nice.  It does appear that 8-bit alpha is preserved by
gdk-pixbuf-csource, and since our loading is centralized, it ought to be easy to
do (ought to:).
Comment 18 Hans Breuer 2005-01-28 18:27:59 UTC
Comment on attachment 31063 [details] [review]
dia_new_icons.diff

obsoled by the following version
Comment 19 Hans Breuer 2005-01-28 18:29:35 UTC
Comment on attachment 31095 [details] [review]
dia_new_icons2.diff

as menitioned in the comments above IMO the patch needs quite some work.
Marking as such.
Comment 20 Lars Clausen 2005-03-05 18:28:18 UTC
Steffen, sorry to not apply your patch and get pretty icons, but we've just
gotten rid of run-time loading of images into code (still OK for sheets, of
course), so this really needs to be done with the gdk-pixbuf-csource'd versions.
 See how to use them in lib/widgets.c, in dia_toggle_button_new_with_icons(). 
Marking as NEEDINFO to get off my list while waiting for a working version.
Comment 21 Steffen Macke 2006-01-28 10:25:57 UTC
I think this is fixed in the CVS.
Comment 22 Hans Breuer 2006-04-08 10:35:21 UTC
Closing. Steffen, feel free to close your bug reports yourself ;-)