2013-01-27 23:16:14 -05:00
|
|
|
<?xml version="1.0" encoding="UTF-8"?>
|
2010-10-30 16:14:30 -04:00
|
|
|
<interface>
|
2012-12-10 15:34:20 +01:00
|
|
|
<!-- interface-requires gtk+ 3.0 -->
|
2020-07-03 09:41:19 +02:00
|
|
|
<template class="CcLanguageChooser" parent="GtkDialog">
|
2018-08-22 11:49:15 +12:00
|
|
|
<property name="title" translatable="yes">Select Language</property>
|
2010-10-30 16:14:30 -04:00
|
|
|
<property name="modal">True</property>
|
2013-01-27 23:16:14 -05:00
|
|
|
<property name="destroy_with_parent">True</property>
|
2022-02-05 18:00:26 -03:00
|
|
|
<property name="default_width">400</property>
|
2019-11-20 13:02:03 +05:30
|
|
|
<property name="default_height">475</property>
|
2020-12-01 10:41:44 +13:00
|
|
|
<signal name="activate-default" handler="activate_default_cb"/>
|
2014-10-16 17:14:49 +02:00
|
|
|
<child type="action">
|
2018-08-22 11:49:15 +12:00
|
|
|
<object class="GtkButton" id="select_button">
|
|
|
|
<property name="label" translatable="yes">_Select</property>
|
2018-08-22 11:54:44 +12:00
|
|
|
<property name="sensitive">False</property>
|
2014-10-16 17:14:49 +02:00
|
|
|
<property name="use_underline">True</property>
|
|
|
|
<property name="valign">center</property>
|
|
|
|
</object>
|
|
|
|
</child>
|
|
|
|
<child type="action">
|
2018-06-29 16:50:43 +12:00
|
|
|
<object class="GtkButton" id="cancel_button">
|
2014-10-16 17:14:49 +02:00
|
|
|
<property name="label" translatable="yes">_Cancel</property>
|
|
|
|
<property name="use_underline">True</property>
|
|
|
|
<property name="valign">center</property>
|
2014-07-04 18:46:40 +02:00
|
|
|
</object>
|
|
|
|
</child>
|
2021-10-19 20:53:12 -03:00
|
|
|
<child>
|
2018-06-29 16:50:43 +12:00
|
|
|
<object class="GtkBox">
|
2010-10-30 16:14:30 -04:00
|
|
|
<property name="orientation">vertical</property>
|
2013-01-27 23:16:14 -05:00
|
|
|
<property name="spacing">0</property>
|
2018-07-02 16:25:55 +12:00
|
|
|
<child>
|
|
|
|
<object class="GtkSearchBar" id="search_bar">
|
|
|
|
<property name="hexpand">True</property>
|
|
|
|
<child>
|
|
|
|
<object class="GtkSearchEntry" id="language_filter_entry">
|
2023-04-20 14:49:47 -03:00
|
|
|
<property name="placeholder_text" translatable="yes">Language or country</property>
|
2018-07-02 16:25:55 +12:00
|
|
|
<property name="width_chars">30</property>
|
2020-12-01 10:41:44 +13:00
|
|
|
<signal name="search-changed" handler="language_filter_entry_search_changed_cb" object="CcLanguageChooser" swapped="yes"/>
|
2018-07-02 16:25:55 +12:00
|
|
|
</object>
|
|
|
|
</child>
|
|
|
|
</object>
|
|
|
|
</child>
|
2011-08-20 01:34:28 -04:00
|
|
|
<child>
|
2018-06-29 16:50:43 +12:00
|
|
|
<object class="GtkScrolledWindow">
|
2013-01-27 23:16:14 -05:00
|
|
|
<property name="hscrollbar-policy">never</property>
|
2018-02-26 21:20:30 +01:00
|
|
|
<property name="vscrollbar-policy">automatic</property>
|
|
|
|
<property name="propagate-natural-height">True</property>
|
2018-07-02 16:25:55 +12:00
|
|
|
<property name="min-content-height">200</property>
|
2010-10-30 16:14:30 -04:00
|
|
|
<child>
|
2018-07-02 16:25:55 +12:00
|
|
|
<object class="GtkListBox" id="language_listbox">
|
|
|
|
<property name="can-focus">True</property>
|
|
|
|
<property name="vexpand">True</property>
|
|
|
|
<property name="halign">fill</property>
|
|
|
|
<property name="valign">fill</property>
|
2021-10-19 20:53:12 -03:00
|
|
|
<property name="selection-mode">none</property>
|
|
|
|
<property name="show-separators">True</property>
|
2020-12-01 10:41:44 +13:00
|
|
|
<signal name="row-activated" handler="language_listbox_row_activated_cb" object="CcLanguageChooser" swapped="yes"/>
|
2020-12-01 10:06:17 +13:00
|
|
|
<child type="placeholder">
|
|
|
|
<object class="GtkLabel">
|
|
|
|
<property name="label" translatable="yes">No languages found</property>
|
|
|
|
<property name="sensitive">False</property>
|
|
|
|
</object>
|
|
|
|
</child>
|
2021-02-23 10:24:49 -03:00
|
|
|
|
|
|
|
<!-- "More" row -->
|
|
|
|
<child>
|
|
|
|
<object class="GtkListBoxRow" id="more_row">
|
|
|
|
<child>
|
|
|
|
<object class="GtkBox">
|
|
|
|
<property name="spacing">10</property>
|
|
|
|
<property name="tooltip_markup" translatable="yes">More…</property>
|
|
|
|
<child>
|
|
|
|
<object class="GtkImage">
|
2021-03-04 09:31:19 -03:00
|
|
|
<property name="hexpand">True</property>
|
|
|
|
<property name="halign">center</property>
|
2021-02-23 10:24:49 -03:00
|
|
|
<property name="icon-name">view-more-symbolic</property>
|
|
|
|
<property name="icon-size">1</property>
|
|
|
|
<property name="margin-top">10</property>
|
|
|
|
<property name="margin-bottom">10</property>
|
|
|
|
<style>
|
|
|
|
<class name="dim-label"/>
|
|
|
|
</style>
|
|
|
|
</object>
|
|
|
|
</child>
|
|
|
|
</object>
|
|
|
|
</child>
|
|
|
|
</object>
|
|
|
|
</child>
|
|
|
|
|
2010-10-30 16:14:30 -04:00
|
|
|
</object>
|
|
|
|
</child>
|
|
|
|
</object>
|
2011-08-20 01:34:28 -04:00
|
|
|
</child>
|
2010-10-30 16:14:30 -04:00
|
|
|
</object>
|
|
|
|
</child>
|
2014-07-04 18:46:40 +02:00
|
|
|
<action-widgets>
|
2018-08-22 11:49:15 +12:00
|
|
|
<action-widget response="-5" default="true">select_button</action-widget>
|
2018-06-29 16:50:43 +12:00
|
|
|
<action-widget response="-6">cancel_button</action-widget>
|
2014-07-04 18:46:40 +02:00
|
|
|
</action-widgets>
|
2018-06-29 16:50:43 +12:00
|
|
|
</template>
|
2010-10-30 16:14:30 -04:00
|
|
|
</interface>
|