Bug 13874 - Stetic generates button-with-image code that ignores GTK theme
Summary: Stetic generates button-with-image code that ignores GTK theme
Status: NEW
Alias: None
Product: Xamarin Studio
Classification: Desktop
Component: GTK# Designer ()
Version: Trunk
Hardware: PC Mac OS
: Normal normal
Target Milestone: master
Assignee: Lluis Sanchez
Depends on:
Reported: 2013-08-08 18:25 UTC by Mikayla Hutchinson [MSFT]
Modified: 2013-08-09 16:36 UTC (History)
1 user (show)

Is this bug a regression?: ---
Last known good build:

Notice (2018-05-24): bugzilla.xamarin.com is now in read-only mode.

Please join us on Visual Studio Developer Community and in the Xamarin and Mono organizations on GitHub to continue tracking issues. Bugzilla will remain available for reference in read-only mode. We will continue to work on open Bugzilla bugs, copy them to the new locations as needed for follow-up, and add the new items under Related Links.

Our sincere thanks to everyone who has contributed on this bug tracker over the years. Thanks also for your understanding as we make these adjustments and improvements for the future.

Please create a new report for Bug 13874 on Developer Community or GitHub if you have new information to add and do not yet see a matching new report.

If the latest results still closely match this report, you can use the original description:

  • Export the original title and description: Developer Community HTML or GitHub Markdown
  • Copy the title and description into the new report. Adjust them to be up-to-date if needed.
  • Add your new information.

In special cases on GitHub you might also want the comments: GitHub Markdown with public comments

Related Links:

Description Mikayla Hutchinson [MSFT] 2013-08-08 18:25:55 UTC
For buttons with text and a custom image, stetic constrcuts its down containers, image and label. This results in buttons that ignore the gtk-button-images=0 gtkrc setting.

It should instead be generating code that sets the label's Image property, which does respect this setting. This property was added in GTK 2.6 and I guess stetic technically still supports GTK 2.4, but I don't believe that's something we actually care about any more.
Comment 1 Mikayla Hutchinson [MSFT] 2013-08-08 18:32:48 UTC
In the meantime we should probably audit the MD codebase for TextAndIcon usage.
Comment 2 Mikayla Hutchinson [MSFT] 2013-08-09 16:36:51 UTC
A quick grep finds 28.  Probably easier to fix the bug than to apply workarounds everywhere.