summaryrefslogtreecommitdiff
path: root/src/capplet/mate-notification-properties.ui
diff options
context:
space:
mode:
authorVictor Kareh <[email protected]>2025-08-20 22:49:42 -0400
committerVictor Kareh <[email protected]>2025-08-20 23:09:04 -0400
commit7d92991c7bc863bd675db403f83b094f93a7a3ff (patch)
tree05ee7fb0c0d456564939d523483d5f0e8c880535 /src/capplet/mate-notification-properties.ui
parent3adfad8097615f179f7c96f27ccd8ed7f9ba5a15 (diff)
downloadmate-notification-daemon-notification-spec-v1.3.tar.bz2
mate-notification-daemon-notification-spec-v1.3.tar.xz
capplet: Add timeout and persistence controlsnotification-spec-v1.3
Add new UI elements to configure default timeout, allow persistent notifications, and to display countdown on all notification messages.
Diffstat (limited to 'src/capplet/mate-notification-properties.ui')
-rw-r--r--src/capplet/mate-notification-properties.ui120
1 files changed, 120 insertions, 0 deletions
diff --git a/src/capplet/mate-notification-properties.ui b/src/capplet/mate-notification-properties.ui
index d6dbfac..49bc4c8 100644
--- a/src/capplet/mate-notification-properties.ui
+++ b/src/capplet/mate-notification-properties.ui
@@ -12,6 +12,13 @@
<property name="can_focus">False</property>
<property name="icon_name">window-close</property>
</object>
+ <object class="GtkAdjustment" id="timeout_adjustment">
+ <property name="lower">0</property>
+ <property name="upper">300000</property>
+ <property name="value">7000</property>
+ <property name="step_increment">1000</property>
+ <property name="page_increment">5000</property>
+ </object>
<object class="GtkDialog" id="dialog">
<property name="can_focus">False</property>
<property name="border_width">12</property>
@@ -232,6 +239,119 @@
<property name="position">1</property>
</packing>
</child>
+ <child>
+ <object class="GtkFrame">
+ <property name="visible">True</property>
+ <property name="can_focus">False</property>
+ <property name="label_xalign">0</property>
+ <property name="shadow_type">none</property>
+ <child>
+ <object class="GtkAlignment">
+ <property name="visible">True</property>
+ <property name="can_focus">False</property>
+ <child>
+ <object class="GtkBox">
+ <property name="visible">True</property>
+ <property name="can_focus">False</property>
+ <property name="margin_top">6</property>
+ <property name="orientation">vertical</property>
+ <property name="spacing">6</property>
+ <child>
+ <object class="GtkGrid">
+ <property name="visible">True</property>
+ <property name="can_focus">False</property>
+ <property name="row_spacing">6</property>
+ <property name="column_spacing">12</property>
+ <child>
+ <object class="GtkLabel">
+ <property name="visible">True</property>
+ <property name="can_focus">False</property>
+ <property name="halign">start</property>
+ <property name="label" translatable="yes">_Timeout (ms):</property>
+ <property name="use_underline">True</property>
+ <property name="mnemonic_widget">timeout_spin</property>
+ </object>
+ <packing>
+ <property name="left_attach">0</property>
+ <property name="top_attach">0</property>
+ </packing>
+ </child>
+ <child>
+ <object class="GtkSpinButton" id="timeout_spin">
+ <property name="visible">True</property>
+ <property name="can_focus">True</property>
+ <property name="adjustment">timeout_adjustment</property>
+ <property name="climb_rate">1000</property>
+ <property name="digits">0</property>
+ <property name="numeric">True</property>
+ <property name="value">7000</property>
+ <property name="tooltip_text" translatable="yes">Default timeout for notifications in milliseconds. Use 0 for no timeout (persistent).</property>
+ </object>
+ <packing>
+ <property name="left_attach">1</property>
+ <property name="top_attach">0</property>
+ </packing>
+ </child>
+ </object>
+ <packing>
+ <property name="expand">False</property>
+ <property name="fill">True</property>
+ <property name="position">0</property>
+ </packing>
+ </child>
+ <child>
+ <object class="GtkCheckButton" id="enable_persistence_check">
+ <property name="label" translatable="yes">Allow Persistent Notifications</property>
+ <property name="visible">True</property>
+ <property name="can_focus">True</property>
+ <property name="receives_default">False</property>
+ <property name="halign">start</property>
+ <property name="draw_indicator">True</property>
+ <property name="tooltip_text" translatable="yes">Allow applications to create notifications that don't disappear automatically</property>
+ </object>
+ <packing>
+ <property name="expand">False</property>
+ <property name="fill">True</property>
+ <property name="position">1</property>
+ </packing>
+ </child>
+ <child>
+ <object class="GtkCheckButton" id="show_countdown_check">
+ <property name="label" translatable="yes">Show Countdown Timer</property>
+ <property name="visible">True</property>
+ <property name="can_focus">True</property>
+ <property name="receives_default">False</property>
+ <property name="halign">start</property>
+ <property name="draw_indicator">True</property>
+ <property name="tooltip_text" translatable="yes">Show countdown timer on all timed notifications (not just those with actions)</property>
+ </object>
+ <packing>
+ <property name="expand">False</property>
+ <property name="fill">True</property>
+ <property name="position">2</property>
+ </packing>
+ </child>
+ </object>
+ </child>
+ </object>
+ </child>
+ <child type="label">
+ <object class="GtkLabel">
+ <property name="visible">True</property>
+ <property name="can_focus">False</property>
+ <property name="label" translatable="yes">Timeout &amp; Behavior</property>
+ <attributes>
+ <attribute name="weight" value="bold"/>
+ </attributes>
+ </object>
+ </child>
+ </object>
+ <packing>
+ <property name="expand">False</property>
+ <property name="fill">True</property>
+ <property name="position">2</property>
+ </packing>
+ </child>
</object>
</child>
<action-widgets>