inspector: redo property editing
Move away from cell editing, and use a popover instead. This makes it easier to e.g. use a color chooser - there's just not enough room in a cell for many things. Much of this code is adapted from tests/prop-editor.c.
This commit is contained in:
@ -26,6 +26,8 @@
|
||||
<property name="visible">True</property>
|
||||
<property name="model">model</property>
|
||||
<property name="tooltip-column">4</property>
|
||||
<property name="activate-on-single-click">True</property>
|
||||
<signal name="row-activated" handler="row_activated"/>
|
||||
<child>
|
||||
<object class="GtkTreeViewColumn">
|
||||
<property name="title" translatable="yes">Property</property>
|
||||
@ -47,16 +49,14 @@
|
||||
<property name="title" translatable="yes">Value</property>
|
||||
<property name="resizable">True</property>
|
||||
<child>
|
||||
<object class="GtkInspectorPropertyCellRenderer" id="value_renderer">
|
||||
<object class="GtkCellRendererText">
|
||||
<property name="scale">0.8</property>
|
||||
<property name="editable">True</property>
|
||||
<property name="editable">False</property>
|
||||
<property name="width-chars">20</property>
|
||||
<property name="ellipsize">end</property>
|
||||
</object>
|
||||
<attributes>
|
||||
<attribute name="text">1</attribute>
|
||||
<attribute name="object">3</attribute>
|
||||
<attribute name="name">0</attribute>
|
||||
<attribute name="sensitive">5</attribute>
|
||||
</attributes>
|
||||
</child>
|
||||
|
||||
Reference in New Issue
Block a user