roster/src/widgets/environment-column-header.ui
Pavel Baksy f4f33324dd Add Copy environment button to Environments dialog
Each environment column header now has a copy button that creates a
duplicate with a unique name (e.g. "Production (1)"). Non-sensitive
variables are copied directly; sensitive variables are migrated
through the keyring asynchronously.
2026-05-12 01:10:07 +02:00

65 lines
2.1 KiB
XML

<?xml version="1.0" encoding="UTF-8"?>
<interface>
<requires lib="gtk" version="4.0"/>
<template class="EnvironmentColumnHeader" parent="GtkBox">
<property name="orientation">vertical</property>
<property name="spacing">4</property>
<property name="width-request">200</property>
<child>
<object class="GtkLabel" id="name_label">
<property name="xalign">0.5</property>
<property name="ellipsize">end</property>
<property name="max-width-chars">20</property>
<style>
<class name="heading"/>
</style>
</object>
</child>
<child>
<object class="GtkBox">
<property name="orientation">horizontal</property>
<property name="halign">center</property>
<property name="spacing">4</property>
<child>
<object class="GtkButton" id="copy_button">
<property name="icon-name">edit-copy-symbolic</property>
<property name="tooltip-text">Copy environment</property>
<signal name="clicked" handler="on_copy_clicked"/>
<style>
<class name="flat"/>
<class name="circular"/>
</style>
</object>
</child>
<child>
<object class="GtkButton" id="edit_button">
<property name="icon-name">document-properties-symbolic</property>
<property name="tooltip-text">Edit environment</property>
<signal name="clicked" handler="on_edit_clicked"/>
<style>
<class name="flat"/>
<class name="circular"/>
</style>
</object>
</child>
<child>
<object class="GtkButton" id="delete_button">
<property name="icon-name">edit-delete-symbolic</property>
<property name="tooltip-text">Delete environment</property>
<signal name="clicked" handler="on_delete_clicked"/>
<style>
<class name="flat"/>
<class name="circular"/>
</style>
</object>
</child>
</object>
</child>
</template>
</interface>