mirror of
https://gitlab.gnome.org/julianschacher/top-bar-organizer.git
synced 2025-10-27 15:19:09 +00:00
Compare commits
No commits in common. "185a48c857aeadaca70bd66a80180459f821ac9c" and "b17a805035aa860f7b00a998a9b196d7e1ab895e" have entirely different histories.
185a48c857
...
b17a805035
@ -4,4 +4,3 @@
|
|||||||
/docs/panel_45.0_2023-09-26.js
|
/docs/panel_45.0_2023-09-26.js
|
||||||
/docs/panel_46.4_2024-09-11.js
|
/docs/panel_46.4_2024-09-11.js
|
||||||
/docs/panel_47.rc_2024-09-12.js
|
/docs/panel_47.rc_2024-09-12.js
|
||||||
/docs/panel_48.2_2025-06-08.js
|
|
||||||
|
|||||||
@ -1,6 +1,12 @@
|
|||||||
<?xml version="1.0" encoding="UTF-8"?>
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
<interface>
|
<interface>
|
||||||
<template class="PrefsBoxOrderItemRow" parent="AdwActionRow">
|
<template class="PrefsBoxOrderItemRow" parent="AdwActionRow">
|
||||||
|
<child type="prefix">
|
||||||
|
<object class="GtkLabel" id="item-name-display-label">
|
||||||
|
<property name="halign">start</property>
|
||||||
|
<property name="hexpand">True</property>
|
||||||
|
</object>
|
||||||
|
</child>
|
||||||
<child type="prefix">
|
<child type="prefix">
|
||||||
<object class="GtkImage">
|
<object class="GtkImage">
|
||||||
<property name="icon-name">list-drag-handle-symbolic</property>
|
<property name="icon-name">list-drag-handle-symbolic</property>
|
||||||
|
|||||||
@ -11,6 +11,9 @@ export default class PrefsBoxOrderItemRow extends Adw.ActionRow {
|
|||||||
GObject.registerClass({
|
GObject.registerClass({
|
||||||
GTypeName: "PrefsBoxOrderItemRow",
|
GTypeName: "PrefsBoxOrderItemRow",
|
||||||
Template: GLib.uri_resolve_relative(import.meta.url, "../ui/prefs-box-order-item-row.ui", GLib.UriFlags.NONE),
|
Template: GLib.uri_resolve_relative(import.meta.url, "../ui/prefs-box-order-item-row.ui", GLib.UriFlags.NONE),
|
||||||
|
InternalChildren: [
|
||||||
|
"item-name-display-label",
|
||||||
|
],
|
||||||
Signals: {
|
Signals: {
|
||||||
"move": {
|
"move": {
|
||||||
param_types: [GObject.TYPE_STRING],
|
param_types: [GObject.TYPE_STRING],
|
||||||
@ -44,12 +47,12 @@ export default class PrefsBoxOrderItemRow extends Adw.ActionRow {
|
|||||||
this.item = item;
|
this.item = item;
|
||||||
|
|
||||||
if (item.startsWith("appindicator-kstatusnotifieritem-")) {
|
if (item.startsWith("appindicator-kstatusnotifieritem-")) {
|
||||||
// Set the title to something nicer, if the associated item is an
|
// Set `this._item_name_display_label` to something nicer, if the
|
||||||
// AppIndicator/KStatusNotifierItem item.
|
// associated item is an AppIndicator/KStatusNotifierItem item.
|
||||||
this.set_title(item.replace("appindicator-kstatusnotifieritem-", ""));
|
this._item_name_display_label.set_label(item.replace("appindicator-kstatusnotifieritem-", ""));
|
||||||
} else {
|
} else {
|
||||||
// Otherwise just set it to `item`.
|
// Otherwise just set it to `item`.
|
||||||
this.set_title(item);
|
this._item_name_display_label.set_label(item);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user