This commit is contained in:
2017-07-02 18:11:56 +02:00
parent f06f3dbb33
commit bbe332f107
8 changed files with 420 additions and 215 deletions

View File

@@ -1,24 +1,11 @@
<?xml version="1.0" encoding="UTF-8"?>
<!-- Generated with glade 3.18.3 -->
<!-- Generated with glade 3.20.0 -->
<interface>
<requires lib="gtk+" version="3.12"/>
<object class="GtkBox" id="noti_vbox_disabled">
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="valign">start</property>
<property name="orientation">vertical</property>
<property name="margin">5</property>
<child>
<object class="GtkLabel" id="noti_disabled_label">
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="halign">center</property>
<property name="label" translatable="yes">Notification support disabled at compile time.</property>
<attributes>
<attribute name="weight" value="bold"/>
</attributes>
</object>
</child>
<object class="GtkAdjustment" id="fine_scroll_step_adjustment">
<property name="upper">100</property>
<property name="step_increment">1</property>
<property name="page_increment">10</property>
</object>
<object class="GtkAdjustment" id="noti_timeout_adjustment">
<property name="upper">1000000000</property>
@@ -30,11 +17,11 @@
<property name="can_focus">False</property>
<property name="valign">start</property>
<property name="orientation">vertical</property>
<property name="margin">5</property>
<child>
<object class="GtkFrame" id="frame9">
<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="GtkTable" id="table8">
@@ -88,6 +75,9 @@
<property name="y_options">GTK_EXPAND</property>
</packing>
</child>
<child>
<placeholder/>
</child>
</object>
</child>
<child type="label">
@@ -111,13 +101,14 @@
<object class="GtkFrame" id="frame11">
<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="GtkBox" id="vbox7">
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="orientation">vertical</property>
<property name="margin_start">12</property>
<property name="orientation">vertical</property>
<property name="spacing">3</property>
<child>
<object class="GtkCheckButton" id="noti_hotkey_check">
@@ -203,12 +194,29 @@
</packing>
</child>
</object>
<object class="GtkAdjustment" id="scroll_step_adjustment">
<property name="upper">100</property>
<property name="step_increment">1</property>
<property name="page_increment">10</property>
<object class="GtkBox" id="noti_vbox_disabled">
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="valign">start</property>
<property name="orientation">vertical</property>
<child>
<object class="GtkLabel" id="noti_disabled_label">
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="halign">center</property>
<property name="label" translatable="yes">Notification support disabled at compile time.</property>
<attributes>
<attribute name="weight" value="bold"/>
</attributes>
</object>
<packing>
<property name="expand">False</property>
<property name="fill">True</property>
<property name="position">0</property>
</packing>
</child>
</object>
<object class="GtkAdjustment" id="fine_scroll_step_adjustment">
<object class="GtkAdjustment" id="scroll_step_adjustment">
<property name="upper">100</property>
<property name="step_increment">1</property>
<property name="page_increment">10</property>
@@ -220,10 +228,10 @@
</object>
<object class="GtkDialog" id="prefs_dialog">
<property name="can_focus">False</property>
<property name="type_hint">dialog</property>
<property name="title" translatable="yes">PNMixer Preferences</property>
<property name="resizable">False</property>
<property name="icon_name">preferences-system</property>
<property name="type_hint">dialog</property>
<child internal-child="vbox">
<object class="GtkBox" id="vbox1">
<property name="visible">True</property>
@@ -234,7 +242,6 @@
<object class="GtkButtonBox" id="action_area1">
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="spacing">10</property>
<property name="layout_style">end</property>
<child>
<object class="GtkButton" id="cancel_button">
@@ -320,6 +327,11 @@
</object>
</child>
</object>
<packing>
<property name="expand">True</property>
<property name="fill">True</property>
<property name="position">1</property>
</packing>
</child>
</object>
<packing>
@@ -339,47 +351,20 @@
<property name="can_focus">False</property>
<property name="valign">start</property>
<property name="orientation">vertical</property>
<property name="margin">5</property>
<child>
<object class="GtkFrame" id="frame1">
<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="GtkTable" id="table1">
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="margin_start">12</property>
<property name="n_rows">3</property>
<property name="n_rows">2</property>
<property name="n_columns">2</property>
<property name="row_spacing">15</property>
<child>
<object class="GtkLabel" id="label35">
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="halign">start</property>
<property name="label" translatable="yes">Slider Orientation:</property>
</object>
<packing>
<property name="y_options">GTK_EXPAND</property>
</packing>
</child>
<child>
<object class="GtkComboBoxText" id="vol_orientation_combo">
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="active">0</property>
<items>
<item translatable="yes" id="vertical">Vertical</item>
<item translatable="yes" id="horizontal">Horizontal</item>
</items>
</object>
<packing>
<property name="left_attach">1</property>
<property name="right_attach">2</property>
<property name="y_options">GTK_EXPAND</property>
</packing>
</child>
<child>
<object class="GtkCheckButton" id="vol_text_check">
<property name="label" translatable="yes">Display Text Volume</property>
@@ -393,8 +378,6 @@
</object>
<packing>
<property name="right_attach">2</property>
<property name="top_attach">1</property>
<property name="bottom_attach">2</property>
<property name="y_options">GTK_EXPAND</property>
</packing>
</child>
@@ -402,12 +385,12 @@
<object class="GtkLabel" id="vol_pos_label">
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="label" translatable="yes">Text Volume Position:</property>
<property name="halign">start</property>
<property name="label" translatable="yes">Text Volume Position:</property>
</object>
<packing>
<property name="top_attach">2</property>
<property name="bottom_attach">3</property>
<property name="top_attach">1</property>
<property name="bottom_attach">2</property>
<property name="y_options">GTK_EXPAND</property>
</packing>
</child>
@@ -417,17 +400,17 @@
<property name="can_focus">False</property>
<property name="active">0</property>
<items>
<item translatable="yes" id="top">Top</item>
<item translatable="yes" id="bottom">Bottom</item>
<item translatable="yes" id="left">Left</item>
<item translatable="yes" id="right">Right</item>
<item id="top" translatable="yes">Top</item>
<item id="bottom" translatable="yes">Bottom</item>
<item id="left" translatable="yes">Left</item>
<item id="right" translatable="yes">Right</item>
</items>
</object>
<packing>
<property name="left_attach">1</property>
<property name="right_attach">2</property>
<property name="top_attach">2</property>
<property name="bottom_attach">3</property>
<property name="top_attach">1</property>
<property name="bottom_attach">2</property>
<property name="y_options">GTK_EXPAND</property>
</packing>
</child>
@@ -454,6 +437,7 @@
<object class="GtkFrame" id="frame2">
<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="GtkTable" id="table2">
@@ -483,8 +467,8 @@
<object class="GtkLabel" id="vol_meter_pos_label">
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="label" translatable="yes">Volume Meter Offset (%):</property>
<property name="halign">start</property>
<property name="label" translatable="yes">Volume Meter Offset (%):</property>
</object>
<packing>
<property name="top_attach">1</property>
@@ -496,8 +480,8 @@
<object class="GtkLabel" id="vol_meter_color_label">
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="label" translatable="yes">Volume Meter Color:</property>
<property name="halign">start</property>
<property name="label" translatable="yes">Volume Meter Color:</property>
</object>
<packing>
<property name="top_attach">2</property>
@@ -563,6 +547,7 @@
<object class="GtkFrame" id="frame6">
<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="GtkCheckButton" id="system_theme">
@@ -571,8 +556,8 @@
<property name="visible">True</property>
<property name="can_focus">True</property>
<property name="receives_default">False</property>
<property name="margin_start">12</property>
<property name="halign">start</property>
<property name="margin_start">12</property>
<property name="draw_indicator">True</property>
</object>
</child>
@@ -611,26 +596,26 @@
<property name="can_focus">False</property>
<property name="valign">start</property>
<property name="orientation">vertical</property>
<property name="margin">5</property>
<child>
<object class="GtkFrame" id="frame3">
<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="GtkTable" id="table3">
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="margin_start">12</property>
<property name="n_rows">3</property>
<property name="n_rows">2</property>
<property name="n_columns">2</property>
<property name="row_spacing">15</property>
<child>
<object class="GtkLabel" id="label10">
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="label" translatable="yes">Card:</property>
<property name="halign">start</property>
<property name="label" translatable="yes">Card:</property>
</object>
<packing>
<property name="y_options">GTK_EXPAND</property>
@@ -640,8 +625,8 @@
<object class="GtkLabel" id="label11">
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="label" translatable="yes">Channel:</property>
<property name="halign">start</property>
<property name="label" translatable="yes">Channel:</property>
</object>
<packing>
<property name="top_attach">1</property>
@@ -674,37 +659,6 @@
<property name="y_options">GTK_EXPAND</property>
</packing>
</child>
<child>
<object class="GtkCheckButton" id="normalize_vol_check">
<property name="visible">True</property>
<property name="can_focus">True</property>
<property name="receives_default">False</property>
<property name="draw_indicator">True</property>
<child>
<placeholder/>
</child>
</object>
<packing>
<property name="left_attach">1</property>
<property name="right_attach">2</property>
<property name="top_attach">2</property>
<property name="bottom_attach">3</property>
<property name="y_options">GTK_EXPAND</property>
</packing>
</child>
<child>
<object class="GtkLabel" id="label23">
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="label" translatable="yes">Normalize Volume:</property>
<property name="halign">start</property>
<property name="tooltip_text" translatable="yes">Change volume on a logarithmic scale, closer to human perception.</property>
</object>
<packing>
<property name="top_attach">2</property>
<property name="bottom_attach">3</property>
</packing>
</child>
</object>
</child>
<child type="label">
@@ -721,6 +675,7 @@
<property name="expand">False</property>
<property name="fill">False</property>
<property name="padding">5</property>
<property name="position">0</property>
</packing>
</child>
</object>
@@ -745,11 +700,11 @@
<property name="can_focus">False</property>
<property name="valign">start</property>
<property name="orientation">vertical</property>
<property name="margin">5</property>
<child>
<object class="GtkFrame" id="frame4">
<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="GtkEntry" id="vol_control_entry">
@@ -782,6 +737,7 @@
<object class="GtkFrame" id="frame10">
<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="GtkTable" id="table7">
@@ -796,8 +752,8 @@
<object class="GtkLabel" id="label31">
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="label" translatable="yes">Scroll Step:</property>
<property name="halign">start</property>
<property name="label" translatable="yes">Scroll Step:</property>
</object>
<packing>
<property name="y_options">GTK_EXPAND</property>
@@ -807,8 +763,8 @@
<object class="GtkLabel" id="label32">
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="label" translatable="yes">Fine Scroll Step:</property>
<property name="halign">start</property>
<property name="label" translatable="yes">Fine Scroll Step:</property>
</object>
<packing>
<property name="top_attach">1</property>
@@ -820,12 +776,12 @@
<object class="GtkSpinButton" id="scroll_step_spin">
<property name="visible">True</property>
<property name="can_focus">True</property>
<property name="digits">2</property>
<property name="numeric">True</property>
<property name="invisible_char">•</property>
<property name="primary_icon_activatable">False</property>
<property name="secondary_icon_activatable">False</property>
<property name="adjustment">scroll_step_adjustment</property>
<property name="digits">2</property>
<property name="numeric">True</property>
</object>
<packing>
<property name="left_attach">1</property>
@@ -837,12 +793,12 @@
<object class="GtkSpinButton" id="fine_scroll_step_spin">
<property name="visible">True</property>
<property name="can_focus">True</property>
<property name="digits">2</property>
<property name="numeric">True</property>
<property name="invisible_char">•</property>
<property name="primary_icon_activatable">False</property>
<property name="secondary_icon_activatable">False</property>
<property name="adjustment">fine_scroll_step_adjustment</property>
<property name="digits">2</property>
<property name="numeric">True</property>
</object>
<packing>
<property name="left_attach">1</property>
@@ -875,6 +831,7 @@
<object class="GtkFrame" id="frame5">
<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="GtkTable" id="table4">
@@ -889,8 +846,8 @@
<object class="GtkLabel" id="label15">
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="label" translatable="yes">Middle Click Action:</property>
<property name="halign">start</property>
<property name="label" translatable="yes">Middle Click Action:</property>
</object>
<packing>
<property name="y_options">GTK_EXPAND</property>
@@ -900,8 +857,8 @@
<object class="GtkLabel" id="custom_label">
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="label" translatable="yes">Custom Command:</property>
<property name="halign">start</property>
<property name="label" translatable="yes">Custom Command:</property>
</object>
<packing>
<property name="top_attach">1</property>
@@ -914,10 +871,10 @@
<property name="visible">True</property>
<property name="can_focus">False</property>
<items>
<item translatable="yes" id="mute">Mute/Unmute</item>
<item translatable="yes" id="prefs">Show Preferences</item>
<item translatable="yes" id="mixer">Volume Control</item>
<item translatable="yes" id="custom">Custom (set below)</item>
<item id="mute" translatable="yes">Mute/Unmute</item>
<item id="prefs" translatable="yes">Show Preferences</item>
<item id="mixer" translatable="yes">Volume Control</item>
<item id="custom" translatable="yes">Custom (set below)</item>
</items>
<signal name="changed" handler="on_middle_click_combo_changed" swapped="no"/>
</object>
@@ -984,18 +941,18 @@
<property name="can_focus">False</property>
<property name="valign">start</property>
<property name="orientation">vertical</property>
<property name="margin">5</property>
<child>
<object class="GtkFrame" id="frame8">
<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="GtkBox" id="vbox6">
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="orientation">vertical</property>
<property name="margin_start">12</property>
<property name="orientation">vertical</property>
<child>
<object class="GtkCheckButton" id="hotkeys_enable_check">
<property name="label" translatable="yes">Enable HotKeys</property>
@@ -1026,8 +983,8 @@
<object class="GtkLabel" id="label20">
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="label" translatable="yes">Command</property>
<property name="halign">start</property>
<property name="label" translatable="yes">Command</property>
<attributes>
<attribute name="weight" value="bold"/>
</attributes>
@@ -1037,8 +994,8 @@
<object class="GtkLabel" id="label7">
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="label" translatable="yes">Mute/Unmute:</property>
<property name="halign">start</property>
<property name="label" translatable="yes">Mute/Unmute:</property>
</object>
<packing>
<property name="top_attach">1</property>
@@ -1049,8 +1006,8 @@
<object class="GtkLabel" id="label8">
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="label" translatable="yes">Volume Up:</property>
<property name="halign">start</property>
<property name="label" translatable="yes">Volume Up:</property>
</object>
<packing>
<property name="top_attach">2</property>
@@ -1061,8 +1018,8 @@
<object class="GtkLabel" id="label18">
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="label" translatable="yes">Volume Down:</property>
<property name="halign">start</property>
<property name="label" translatable="yes">Volume Down:</property>
</object>
<packing>
<property name="top_attach">3</property>
@@ -1218,8 +1175,8 @@
</object>
</child>
<action-widgets>
<action-widget response="-5">ok_button</action-widget>
<action-widget response="-6">cancel_button</action-widget>
<action-widget response="-5">ok_button</action-widget>
</action-widgets>
</object>
</interface>