forked from AuroraMiddleware/gtk
Font chooser: Hide size controls with 'no match'
The preview entry previews a font despite there being no results, that makes no sense.
This commit is contained in:
parent
972e59d05e
commit
3d81fe8617
@ -60,41 +60,95 @@
|
|||||||
<object class="GtkStack" id="list_stack">
|
<object class="GtkStack" id="list_stack">
|
||||||
<property name="visible">True</property>
|
<property name="visible">True</property>
|
||||||
<child>
|
<child>
|
||||||
<object class="GtkScrolledWindow" id="list_scrolled_window">
|
<object class="GtkGrid">
|
||||||
<property name="width_request">400</property>
|
|
||||||
<property name="height_request">300</property>
|
|
||||||
<property name="visible">True</property>
|
<property name="visible">True</property>
|
||||||
<property name="can_focus">True</property>
|
<property name="row_spacing">6</property>
|
||||||
<property name="hexpand">True</property>
|
<property name="column_spacing">6</property>
|
||||||
<property name="vexpand">True</property>
|
|
||||||
<property name="hscrollbar_policy">never</property>
|
|
||||||
<property name="shadow_type">etched-in</property>
|
|
||||||
<child>
|
<child>
|
||||||
<object class="GtkTreeView" id="family_face_list">
|
<object class="GtkScrolledWindow" id="list_scrolled_window">
|
||||||
|
<property name="width_request">400</property>
|
||||||
|
<property name="height_request">300</property>
|
||||||
<property name="visible">True</property>
|
<property name="visible">True</property>
|
||||||
<property name="can_focus">True</property>
|
<property name="can_focus">True</property>
|
||||||
<property name="model">filter_model</property>
|
<property name="hexpand">True</property>
|
||||||
<property name="headers_visible">False</property>
|
<property name="vexpand">True</property>
|
||||||
<property name="enable_search">False</property>
|
<property name="hscrollbar_policy">never</property>
|
||||||
<property name="fixed_height_mode">True</property>
|
<property name="shadow_type">etched-in</property>
|
||||||
<signal name="cursor-changed" handler="cursor_changed_cb" swapped="no"/>
|
|
||||||
<signal name="row-activated" handler="row_activated_cb" swapped="no"/>
|
|
||||||
<signal name="style-updated" handler="gtk_font_chooser_widget_set_cell_size" object="GtkFontChooserWidget" after="yes" swapped="yes"/>
|
|
||||||
<child internal-child="selection">
|
|
||||||
<object class="GtkTreeSelection" id="treeview-selection1"/>
|
|
||||||
</child>
|
|
||||||
<child>
|
<child>
|
||||||
<object class="GtkTreeViewColumn" id="family_face_column">
|
<object class="GtkTreeView" id="family_face_list">
|
||||||
<property name="sizing">fixed</property>
|
<property name="visible">True</property>
|
||||||
<property name="title" translatable="yes">Font Family</property>
|
<property name="can_focus">True</property>
|
||||||
|
<property name="model">filter_model</property>
|
||||||
|
<property name="headers_visible">False</property>
|
||||||
|
<property name="enable_search">False</property>
|
||||||
|
<property name="fixed_height_mode">True</property>
|
||||||
|
<signal name="cursor-changed" handler="cursor_changed_cb" swapped="no"/>
|
||||||
|
<signal name="row-activated" handler="row_activated_cb" swapped="no"/>
|
||||||
|
<signal name="style-updated" handler="gtk_font_chooser_widget_set_cell_size" object="GtkFontChooserWidget" after="yes" swapped="yes"/>
|
||||||
|
<child internal-child="selection">
|
||||||
|
<object class="GtkTreeSelection" id="treeview-selection1"/>
|
||||||
|
</child>
|
||||||
<child>
|
<child>
|
||||||
<object class="GtkCellRendererText" id="family_face_cell">
|
<object class="GtkTreeViewColumn" id="family_face_column">
|
||||||
<property name="ellipsize">end</property>
|
<property name="sizing">fixed</property>
|
||||||
|
<property name="title" translatable="yes">Font Family</property>
|
||||||
|
<child>
|
||||||
|
<object class="GtkCellRendererText" id="family_face_cell">
|
||||||
|
<property name="ellipsize">end</property>
|
||||||
|
</object>
|
||||||
|
</child>
|
||||||
</object>
|
</object>
|
||||||
</child>
|
</child>
|
||||||
</object>
|
</object>
|
||||||
</child>
|
</child>
|
||||||
</object>
|
</object>
|
||||||
|
<packing>
|
||||||
|
<property name="left_attach">0</property>
|
||||||
|
<property name="top_attach">1</property>
|
||||||
|
<property name="width">2</property>
|
||||||
|
</packing>
|
||||||
|
</child>
|
||||||
|
<child>
|
||||||
|
<object class="GtkEntry" id="preview">
|
||||||
|
<property name="visible">True</property>
|
||||||
|
<property name="can_focus">True</property>
|
||||||
|
<property name="invisible_char">•</property>
|
||||||
|
<property name="text">Sample string goes here</property>
|
||||||
|
<signal name="scroll-event" handler="resize_by_scroll_cb" swapped="no"/>
|
||||||
|
</object>
|
||||||
|
<packing>
|
||||||
|
<property name="left_attach">0</property>
|
||||||
|
<property name="top_attach">2</property>
|
||||||
|
<property name="width">2</property>
|
||||||
|
</packing>
|
||||||
|
</child>
|
||||||
|
<child>
|
||||||
|
<object class="GtkScale" id="size_slider">
|
||||||
|
<property name="visible">True</property>
|
||||||
|
<property name="can_focus">True</property>
|
||||||
|
<property name="hexpand">True</property>
|
||||||
|
<property name="adjustment">slider_adjustment</property>
|
||||||
|
<property name="draw_value">False</property>
|
||||||
|
<property name="round-digits">0</property>
|
||||||
|
<signal name="scroll-event" handler="resize_by_scroll_cb" swapped="no"/>
|
||||||
|
</object>
|
||||||
|
<packing>
|
||||||
|
<property name="left_attach">0</property>
|
||||||
|
<property name="top_attach">3</property>
|
||||||
|
</packing>
|
||||||
|
</child>
|
||||||
|
<child>
|
||||||
|
<object class="GtkSpinButton" id="size_spin">
|
||||||
|
<property name="visible">True</property>
|
||||||
|
<property name="can_focus">True</property>
|
||||||
|
<property name="invisible_char">•</property>
|
||||||
|
<property name="adjustment">spin_adjustment</property>
|
||||||
|
<signal name="output" handler="output_cb"/>
|
||||||
|
</object>
|
||||||
|
<packing>
|
||||||
|
<property name="left_attach">1</property>
|
||||||
|
<property name="top_attach">3</property>
|
||||||
|
</packing>
|
||||||
</child>
|
</child>
|
||||||
</object>
|
</object>
|
||||||
<packing>
|
<packing>
|
||||||
@ -149,48 +203,6 @@
|
|||||||
<property name="width">2</property>
|
<property name="width">2</property>
|
||||||
</packing>
|
</packing>
|
||||||
</child>
|
</child>
|
||||||
<child>
|
|
||||||
<object class="GtkEntry" id="preview">
|
|
||||||
<property name="visible">True</property>
|
|
||||||
<property name="can_focus">True</property>
|
|
||||||
<property name="invisible_char">•</property>
|
|
||||||
<property name="text">Sample string goes here</property>
|
|
||||||
<signal name="scroll-event" handler="resize_by_scroll_cb" swapped="no"/>
|
|
||||||
</object>
|
|
||||||
<packing>
|
|
||||||
<property name="left_attach">0</property>
|
|
||||||
<property name="top_attach">2</property>
|
|
||||||
<property name="width">2</property>
|
|
||||||
</packing>
|
|
||||||
</child>
|
|
||||||
<child>
|
|
||||||
<object class="GtkScale" id="size_slider">
|
|
||||||
<property name="visible">True</property>
|
|
||||||
<property name="can_focus">True</property>
|
|
||||||
<property name="hexpand">True</property>
|
|
||||||
<property name="adjustment">slider_adjustment</property>
|
|
||||||
<property name="draw_value">False</property>
|
|
||||||
<property name="round-digits">0</property>
|
|
||||||
<signal name="scroll-event" handler="resize_by_scroll_cb" swapped="no"/>
|
|
||||||
</object>
|
|
||||||
<packing>
|
|
||||||
<property name="left_attach">0</property>
|
|
||||||
<property name="top_attach">3</property>
|
|
||||||
</packing>
|
|
||||||
</child>
|
|
||||||
<child>
|
|
||||||
<object class="GtkSpinButton" id="size_spin">
|
|
||||||
<property name="visible">True</property>
|
|
||||||
<property name="can_focus">True</property>
|
|
||||||
<property name="invisible_char">•</property>
|
|
||||||
<property name="adjustment">spin_adjustment</property>
|
|
||||||
<signal name="output" handler="output_cb"/>
|
|
||||||
</object>
|
|
||||||
<packing>
|
|
||||||
<property name="left_attach">1</property>
|
|
||||||
<property name="top_attach">3</property>
|
|
||||||
</packing>
|
|
||||||
</child>
|
|
||||||
</object>
|
</object>
|
||||||
<packing>
|
<packing>
|
||||||
<property name="expand">True</property>
|
<property name="expand">True</property>
|
||||||
|
Loading…
Reference in New Issue
Block a user