Opened 12 years ago

Closed 12 years ago

Last modified 11 years ago

#3849 closed defect (fixed)

RadioToolButton is too big if the icon is not set in the constructor

Reported by: manuq Owned by: godiard
Priority: Unspecified by Maintainer Milestone:
Component: Sugar Version: Unspecified
Severity: Unspecified Keywords: theme
Cc: godiard, erikos Distribution/OS: Unspecified
Bug Status: Unconfirmed


And makes the toolbar height too tall as a consequence.

Found in Paint GTK+3 port, currently mainline. This change in the testcase shows the issue:

diff --git a/tests/graphics/ b/tests/graphics/
index c4c8cf8..738ee75 100644
--- a/tests/graphics/
+++ b/tests/graphics/
@@ -19,7 +19,8 @@ toolbar_box = ToolbarBox()
 vbox.pack_start(toolbar_box, False, False, 0)
-radial_button = RadioToolButton(named_icon='view-radial')
+radial_button = RadioToolButton()
+radial_button.props.icon_name = 'view-radial'
 toolbar_box.toolbar.insert(radial_button, -1)

Change History (7)

comment:1 Changed 12 years ago by godiard

  • Owner changed from erikos to godiard
  • Status changed from new to assigned

comment:2 Changed 12 years ago by manuq

Using 'named_icon' property does work:

radial_button = RadioToolButton()
radial_button.props.named_icon = 'view-radial'

So the "bug if icon is not set in the constructor" phrase is false. However our API changed. Maybe the activities should change to the new API instead?

comment:3 Changed 12 years ago by godiard

I fixed the issue in Paint activity, but probably will be good add the the fix in sugar-toolkit [1] to avoid the same problem in other activities.

Anyway, this is only with gtk3 activities, then may be can be solved at porting time.

A annoying issue with our api in toolbutton, radiotoolbutton, toggletoolbutton, are theselittle inconsistencies.


comment:4 Changed 12 years ago by godiard

  • Cc erikos added

comment:5 Changed 12 years ago by godiard

  • Resolution set to fixed
  • Status changed from assigned to closed

Already solved in sugar-tookit-gtk3

comment:6 Changed 11 years ago by dnarvaez

  • Component changed from sugar-toolkit-gtk3 to Sugar

comment:7 Changed 11 years ago by dnarvaez

  • Milestone 0.98 deleted

Milestone 0.98 deleted

Note: See TracTickets for help on using tickets.