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 162312 - arrows are hard coded
arrows are hard coded
Status: RESOLVED FIXED
Product: bonobo
Classification: Deprecated
Component: libbonoboui
unspecified
Other Linux
: Normal enhancement
: ---
Assigned To: Michael Meeks
bonobo qa
Depends on:
Blocks:
 
 
Reported: 2004-12-27 11:57 UTC by David Christian Berg
Modified: 2007-01-30 21:46 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Uses GtkArrow instead of GdkPixbuf (3.61 KB, patch)
2006-11-30 20:52 UTC, Diego Escalante Urrelo (not reading bugmail)
none Details | Review
patch (3.90 KB, patch)
2007-01-30 21:41 UTC, Christian Persch
committed Details | Review

Description David Christian Berg 2004-12-27 11:57:14 UTC
The arrow to expand a toolbar that is too small to show all the buttons, is hard
coded. Instead the GtkArrow should be drawn. This is a design arrow right from
the start, since a consistent UI can only be provided if all the components can
be themed. With the current design this is impossible.
Comment 1 Michael Meeks 2005-01-06 16:17:35 UTC
Sounds reasonable/right - can you knock up a fix ? or is this a dup. of #162761 ?
Comment 2 David Christian Berg 2005-01-06 16:37:45 UTC
Nope, this is no dup of #162761 (I should know, what kinda bugs my brother is
filing, right :) )
However, I myself can't code at all... I'll ask Benjamin about it. But I recall
that he said it wasn't all that easy to to do for him.
Comment 3 Kjartan Maraas 2006-11-15 13:27:54 UTC
Probably an easy task for someone with a few hours of spare time.
Comment 4 Diego Escalante Urrelo (not reading bugmail) 2006-11-30 20:52:22 UTC
Created attachment 77446 [details] [review]
Uses GtkArrow instead of GdkPixbuf

Tried it with tests/test-toolbar, seems to work flawlessly.

Please comment.
Comment 5 Kjartan Maraas 2006-12-06 01:12:46 UTC
Michael, this looks straight forward?
Comment 6 Michael Meeks 2006-12-12 12:10:25 UTC
looks perfect to me, go go go! :-)
Comment 7 Kjartan Maraas 2006-12-14 09:20:00 UTC
Commited. Thanks.
Comment 8 Kjartan Maraas 2007-01-30 20:44:06 UTC
With this change I get the following compiler warning:

bonobo-ui-toolbar-popup-item.c: In function 'bonobo_ui_toolbar_popup_item_construct':
bonobo-ui-toolbar-popup-item.c:75: warning: passing argument 2 of 'bonobo_ui_toolbar_toggle_button_item_construct' from incompatible pointer type

This seems to come from the fact that the old code expects to be fed a GdkPixbuf containing the arrow, and the new one hands off a GtkWidget *arrow. Is this a problem in real life?
Comment 9 Christian Persch 2007-01-30 21:41:12 UTC
Created attachment 81549 [details] [review]
patch

This fixes a problem introduced by the pixbuf->arrow change (can't have a global static object!), and adds a comment about why it's ok to just cast from GtkWidget* to GdkPixbuf* to silence the compiler.
Comment 10 Christian Persch 2007-01-30 21:46:44 UTC
        * bonobo/bonobo-ui-toolbar-popup-item.c: (set_arrow_orientation),
        (bonobo_ui_toolbar_popup_item_finalize),
        (bonobo_ui_toolbar_popup_item_class_init),
        (bonobo_ui_toolbar_popup_item_init),
        (bonobo_ui_toolbar_popup_item_construct): Fix a bug introduced by the
        switch to GtkArrow by creating one arrow per widget, not a global one.
        Silence a compiler warning, and add a comment explaining why it's ok
        to do so here. Bug #162312.

        * tests/test-toolbar.c: (main): Quit when closing the window.