RSS/Atom feed Twitter
Site is read-only, email is disabled

problem solved

This discussion is connected to the gimp-developer-list.gnome.org mailing list which is provided by the GIMP developers and not related to gimpusers.com.

This is a read-only list on gimpusers.com so this discussion thread is read-only, too.

4 of 4 messages available
Toggle history

Please log in to manage your subscriptions.

RE SIZABLE TOOLBAR and ICONS REARRANGEMENT. pampryl 10 Jul 13:46
  RE SIZABLE TOOLBAR and ICONS REARRANGEMENT. Martin Nordholts 10 Jul 18:18
   RE SIZABLE TOOLBAR and ICONS REARRANGEMENT. Bill Skaggs 10 Jul 18:57
    problem solved pampryl 11 Jul 13:23
pampryl
2008-07-10 13:46:13 UTC (over 16 years ago)

RE SIZABLE TOOLBAR and ICONS REARRANGEMENT.

In the Gimp, there is a toolbar which contains exclusively icons.

These icons display a tooltip when the mouse hovers on them : "Select rectangular regions", "Add text to the image", etc ...

I am interested in the toolbar's ability to get automatically resized along with the panel which contains it : when the panel is resized, the toolbar is also resized and the icons inside are reorganised on a number of lines and columns which varies according to the room given to the toolbar in width and height.

To make things clear : suppose you reduce the width of the panel, then the toolbar's width is also reduced and then fewer icons can be displayed on a single line. So the right-hand icons are shifted from line N to line N+1 on the left side.

Is this kind of toolbar a specific component of GTK+ ? Where can I find the source code of this component either in GTK+ or the Gimp ?

I am waiting for your suggestions with great impatience.

Martin Nordholts
2008-07-10 18:18:46 UTC (over 16 years ago)

RE SIZABLE TOOLBAR and ICONS REARRANGEMENT.

pampryl wrote:

In the Gimp, there is a toolbar which contains exclusively icons.

Is this kind of toolbar a specific component of GTK+ ? Where can I find the source code of this component either in GTK+ or the Gimp ?

Hi

The toolbox logic is implemented in GIMP, have a look in app/widgets/gimptoolbox.c and more specifically gimp_toolbox_size_allocate().

- Martin

Bill Skaggs
2008-07-10 18:57:01 UTC (over 16 years ago)

RE SIZABLE TOOLBAR and ICONS REARRANGEMENT.

pampryl wrote:

In the Gimp, there is a toolbar which contains exclusively icons.

Is this kind of toolbar a specific component of GTK+ ? Where can I find the source code of this component either in GTK+ or the Gimp ?

The code makes use of a widget called GtkWrapBox, from which two other widgets are derived, GtkHWrapBox and GtkVWrapBox. In spite of the names, they are not part of Gtk, only of Gimp. (I believe the code was written with the intention of adding it to Gtk, but wasn't accepted.)

You can find the code for the widgets in the app/widgets directory of the Gimp source, if you are interested.

-- Bill

pampryl
2008-07-11 13:23:14 UTC (over 16 years ago)

problem solved

Thanks a lot Bill, the GtkWrapBox is exactly what I need.
Pampryl