forked from cromer/pamac-classic
little gui fixes
This commit is contained in:
parent
750415c0b7
commit
ec6c5d9381
@ -667,6 +667,7 @@
|
|||||||
<property name="vexpand">True</property>
|
<property name="vexpand">True</property>
|
||||||
<property name="model">packages_list</property>
|
<property name="model">packages_list</property>
|
||||||
<property name="search_column">0</property>
|
<property name="search_column">0</property>
|
||||||
|
<property name="fixed_height_mode">True</property>
|
||||||
<property name="show_expanders">False</property>
|
<property name="show_expanders">False</property>
|
||||||
<child internal-child="selection">
|
<child internal-child="selection">
|
||||||
<object class="GtkTreeSelection" id="list_treeview_selection">
|
<object class="GtkTreeSelection" id="list_treeview_selection">
|
||||||
@ -676,7 +677,8 @@
|
|||||||
<child>
|
<child>
|
||||||
<object class="GtkTreeViewColumn" id="installed_column">
|
<object class="GtkTreeViewColumn" id="installed_column">
|
||||||
<property name="resizable">True</property>
|
<property name="resizable">True</property>
|
||||||
<property name="sizing">autosize</property>
|
<property name="sizing">fixed</property>
|
||||||
|
<property name="fixed_width">100</property>
|
||||||
<property name="title" translatable="yes">State</property>
|
<property name="title" translatable="yes">State</property>
|
||||||
<property name="clickable">True</property>
|
<property name="clickable">True</property>
|
||||||
<property name="sort_indicator">True</property>
|
<property name="sort_indicator">True</property>
|
||||||
@ -706,7 +708,8 @@
|
|||||||
<child>
|
<child>
|
||||||
<object class="GtkTreeViewColumn" id="name_column">
|
<object class="GtkTreeViewColumn" id="name_column">
|
||||||
<property name="resizable">True</property>
|
<property name="resizable">True</property>
|
||||||
<property name="sizing">autosize</property>
|
<property name="sizing">fixed</property>
|
||||||
|
<property name="fixed_width">250</property>
|
||||||
<property name="title" translatable="yes">Name</property>
|
<property name="title" translatable="yes">Name</property>
|
||||||
<property name="clickable">True</property>
|
<property name="clickable">True</property>
|
||||||
<property name="sort_indicator">True</property>
|
<property name="sort_indicator">True</property>
|
||||||
@ -724,7 +727,8 @@
|
|||||||
<child>
|
<child>
|
||||||
<object class="GtkTreeViewColumn" id="size_column">
|
<object class="GtkTreeViewColumn" id="size_column">
|
||||||
<property name="resizable">True</property>
|
<property name="resizable">True</property>
|
||||||
<property name="sizing">autosize</property>
|
<property name="sizing">fixed</property>
|
||||||
|
<property name="fixed_width">50</property>
|
||||||
<property name="title" translatable="yes">Size</property>
|
<property name="title" translatable="yes">Size</property>
|
||||||
<property name="clickable">True</property>
|
<property name="clickable">True</property>
|
||||||
<property name="sort_indicator">True</property>
|
<property name="sort_indicator">True</property>
|
||||||
|
@ -279,7 +279,9 @@ def set_packages_list():
|
|||||||
|
|
||||||
def set_infos_list(pkg):
|
def set_infos_list(pkg):
|
||||||
name_label.set_markup('<big><b>{} {}</b></big>'.format(pkg.name, pkg.version))
|
name_label.set_markup('<big><b>{} {}</b></big>'.format(pkg.name, pkg.version))
|
||||||
desc_label.set_markup(pkg.desc)
|
# fix & in desc
|
||||||
|
desc = pkg.desc.replace('&', '&')
|
||||||
|
desc_label.set_markup(desc)
|
||||||
# fix & in url
|
# fix & in url
|
||||||
url = pkg.url.replace('&', '&')
|
url = pkg.url.replace('&', '&')
|
||||||
link_label.set_markup('<a href=\"{_url}\">{_url}</a>'.format(_url = url))
|
link_label.set_markup('<a href=\"{_url}\">{_url}</a>'.format(_url = url))
|
||||||
|
Loading…
Reference in New Issue
Block a user