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 623426 - Wilber is still on top of toolbox in single window
Wilber is still on top of toolbox in single window
Status: RESOLVED FIXED
Product: GIMP
Classification: Other
Component: User Interface
2.7.1
Other Windows
: Normal trivial
: 2.8
Assigned To: GIMP Bugs
GIMP Bugs
Depends on:
Blocks: 643533
 
 
Reported: 2010-07-02 19:27 UTC by Jerry Addison
Modified: 2011-03-01 21:23 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
This is the image of our beloved mascot I am referring to. (70.07 KB, application/octet-stream)
2010-07-02 19:27 UTC, Jerry Addison
Details

Description Jerry Addison 2010-07-02 19:27:55 UTC
Created attachment 165138 [details]
This is the image of our beloved mascot I am referring to.

While I was testing 2.7.1, I noticed that GIMP'S mascot Wilbur is still on top of the toolbox when it is switched to single-window mode. It looks wierd, and feels unprofessional. I was wondering if someone could remove it or replace it with a better image when GIMP goes into single window mode.
Comment 1 Tor Lillqvist 2010-07-02 21:20:12 UTC
His name is Wilber, not Wilbur, and he is very angry at you now.
Comment 2 Michael Natterer 2010-07-03 11:11:24 UTC
And, what better image?
Comment 3 Jerry Addison 2010-07-03 12:43:22 UTC
I am sorry, I am new to GIMP and probably should have double-checked the name first. My apologies to Wilber. Also I was thinking maybe you could have a contest and ask the GIMP community to could up with some alternative images ?
Comment 4 Martin Nordholts 2010-07-05 11:34:23 UTC
I don't like it either, putting on milestone so we don't forget to discuss it and take a decision.
Comment 5 Lubosz Sarnecki 2011-01-12 15:36:05 UTC
Maybe it should be the same as in multi window mode (so let Wilber stay), but it should not be cropped at the top. There is no way to see Wilber completely like in multi window mode.
Comment 6 Ulysses Levy 2011-02-03 00:02:21 UTC
Here is a possible solution (?) to hide Wilber during single-window-mode;

app/widgets/gimptoolbox.c under gimp_toolbox_expose_wilber () , if we are in single-window-mode then immediately return FALSE, else go ahead and draw Wilber.

questions:
How do we check if we are in single-window-mode?  
Is there a better way ( probably )?
Comment 7 Ulysses Levy 2011-02-03 01:38:43 UTC
okay. ignore my previous comment.

I have a working crude solution.

under gimp_toolbox_size_allocate() use;

  if (config->toolbox_wilber && !config->single_window_mode)
  {
    gtk_widget_show( toolbox->p->header );
  }
  else
  {
    gtk_widget_hide( toolbox->p->header );
  }

once again, I am open to better suggestions.
Comment 8 Massimo 2011-03-01 13:07:57 UTC
In SWM, to see Wilber drawn on toolbox top as it is in MWM 
I have to either hide the menubar or add a call to

  cairo_translate (cr, allocation.x, allocation.y);

before

  cairo_scale (cr, factor, factor);

at line 162 of file 'app/widgets/gimpcairo.c'.
Comment 9 Michael Natterer 2011-03-01 16:12:05 UTC
Thanks Massimo, fixed that glitch:

commit 0bb5a76405de0d9638c44b025729b32426c907bb
Author: Michael Natterer <mitch@gimp.org>
Date:   Tue Mar 1 17:11:22 2011 +0100

    app: fix wilber dawing offset on widgets that don't have a window

 app/widgets/gimpcairo.c |    6 ++++++
 1 files changed, 6 insertions(+), 0 deletions(-)
Comment 10 Martin Nordholts 2011-03-01 21:23:37 UTC
Thanks Massimo and mitch, this is good enough for 2.8.