Make the Icon / Text Button prop a c prop

Reiner's picture
Project: 
Bforartists Tracker

The current solution with the python prop for the checkbox to toggle the buttons between text and icon buttons leads to problems when loading a new scene. The state of the prop can change. Unwanted behaviour.

We need another way for our prop here. Preferable a C prop. In case this fails we have to use AddonPreferences. But first let's try the C way here ...

Status: 
Closed (fixed)
Priority: 
Normal
Category: 
Bug report
Component: 
User interface
Assigned: 
Reporter: 
Created: 
Wed, 02/22/2017 - 09:07
Updated: 
Wed, 02/22/2017 - 11:06

Comments

3
Reiner's picture

Hm. The c prop that i have implemented now works for the 3d view. But it is not global. And so it just works in the 3D View, throwing now error messages in other areas.

Decision time. It's just a handful buttons that doesn't work here. Four buttons in the grease pencil panel. And three in the text editor.

I could simply turn the four grease pencil buttons into icon buttons. The three buttons in the text editor were formerly in the header, being pure icon buttons. I could put them back there, wich is better for the workflow anyways as i have found out meanwhile. And done.

Let's do this.

Reiner's picture
Reiner's picture

Status: Active ยป Closed (fixed)