Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
na-tray: add preferences dialog and applet menu entry
The only option in the preferences is a GtkSpinButton for the user to be able to set the icon sizes easily without having to use dconf-editor.
- Loading branch information
1 parent
10b9c30
commit d68268a
Showing
6 changed files
with
263 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,7 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<gresources> | ||
<gresource prefix="/org/mate/panel/applet/na"> | ||
<file compressed="true">notification-area-preferences-dialog.ui</file> | ||
<file compressed="true">notification-area-menu.xml</file> | ||
</gresource> | ||
</gresources> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
<menuitem name="Notification Area Preferences Item" action="SystemTrayPreferences" /> | ||
<menuitem name="Notification Area Help Item" action="SystemTrayHelp" /> | ||
<menuitem name="Notification Area About Item" action="SystemTrayAbout" /> | ||
|
164 changes: 164 additions & 0 deletions
164
applets/notification_area/notification-area-preferences-dialog.ui
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,164 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<!-- Generated with glade 3.22.1 | ||
mate-panel - panel-properties-dialog | ||
Copyright (C) Mate Developer | ||
This program is free software; you can redistribute it and/or | ||
modify it under the terms of the GNU General Public License | ||
as published by the Free Software Foundation; either version 2 | ||
of the License, or (at your option) any later version. | ||
This program is distributed in the hope that it will be useful, | ||
but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
GNU General Public License for more details. | ||
You should have received a copy of the GNU General Public License | ||
along with this program; if not, write to the Free Software | ||
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. | ||
Author: Wolfgang Ulbrich | ||
--> | ||
<interface> | ||
<requires lib="gtk+" version="3.14"/> | ||
<!-- interface-license-type gplv2 --> | ||
<!-- interface-name mate-panel --> | ||
<!-- interface-description panel-properties-dialog --> | ||
<!-- interface-copyright Mate Developer --> | ||
<!-- interface-authors Wolfgang Ulbrich --> | ||
<object class="GtkAdjustment" id="adjustment1"> | ||
<property name="lower">7</property> | ||
<property name="upper">100</property> | ||
<property name="value">26</property> | ||
<property name="step_increment">1</property> | ||
<property name="page_increment">1</property> | ||
</object> | ||
<object class="GtkDialog" id="notification_area_preferences_dialog"> | ||
<property name="can_focus">False</property> | ||
<property name="border_width">5</property> | ||
<property name="title" translatable="yes">Notification Area Preferences</property> | ||
<property name="resizable">False</property> | ||
<property name="window_position">center</property> | ||
<property name="type_hint">dialog</property> | ||
<child> | ||
<placeholder/> | ||
</child> | ||
<child internal-child="vbox"> | ||
<object class="GtkBox" id="dialog-vbox"> | ||
<property name="visible">True</property> | ||
<property name="can_focus">False</property> | ||
<property name="orientation">vertical</property> | ||
<property name="spacing">2</property> | ||
<child internal-child="action_area"> | ||
<object class="GtkButtonBox" id="dialog-action_area"> | ||
<property name="visible">True</property> | ||
<property name="can_focus">False</property> | ||
<child> | ||
<object class="GtkButton" id="closebutton"> | ||
<property name="label">gtk-close</property> | ||
<property name="visible">True</property> | ||
<property name="can_focus">True</property> | ||
<property name="has_focus">True</property> | ||
<property name="can_default">True</property> | ||
<property name="receives_default">False</property> | ||
<property name="use_stock">True</property> | ||
</object> | ||
<packing> | ||
<property name="expand">False</property> | ||
<property name="fill">False</property> | ||
<property name="position">1</property> | ||
</packing> | ||
</child> | ||
</object> | ||
<packing> | ||
<property name="expand">False</property> | ||
<property name="fill">False</property> | ||
<property name="pack_type">end</property> | ||
<property name="position">0</property> | ||
</packing> | ||
</child> | ||
<child> | ||
<object class="GtkNotebook" id="notebook"> | ||
<property name="visible">True</property> | ||
<property name="can_focus">True</property> | ||
<property name="border_width">5</property> | ||
<property name="show_tabs">False</property> | ||
<property name="show_border">False</property> | ||
<child> | ||
<object class="GtkGrid" id="general_grid"> | ||
<property name="visible">True</property> | ||
<property name="can_focus">False</property> | ||
<property name="margin_left">6</property> | ||
<property name="margin_right">6</property> | ||
<property name="margin_top">6</property> | ||
<property name="margin_bottom">6</property> | ||
<property name="row_spacing">6</property> | ||
<property name="column_spacing">12</property> | ||
<child> | ||
<object class="GtkLabel" id="min_icon_size_label"> | ||
<property name="visible">True</property> | ||
<property name="can_focus">False</property> | ||
<property name="halign">start</property> | ||
<property name="label" translatable="yes">_Minimum Icon Size:</property> | ||
<property name="use_underline">True</property> | ||
<property name="mnemonic_widget">min_icon_size_spin</property> | ||
</object> | ||
<packing> | ||
<property name="left_attach">0</property> | ||
<property name="top_attach">0</property> | ||
</packing> | ||
</child> | ||
<child> | ||
<object class="GtkSpinButton" id="min_icon_size_spin"> | ||
<property name="visible">True</property> | ||
<property name="can_focus">True</property> | ||
<property name="hexpand">True</property> | ||
<property name="text" translatable="yes">26</property> | ||
<property name="adjustment">adjustment1</property> | ||
<property name="climb_rate">1</property> | ||
<property name="numeric">True</property> | ||
<property name="value">26</property> | ||
</object> | ||
<packing> | ||
<property name="left_attach">1</property> | ||
<property name="top_attach">0</property> | ||
</packing> | ||
</child> | ||
<child> | ||
<object class="GtkLabel" id="min_icon_size_label_pixels"> | ||
<property name="visible">True</property> | ||
<property name="can_focus">False</property> | ||
<property name="label" translatable="yes">pixels</property> | ||
</object> | ||
<packing> | ||
<property name="left_attach">2</property> | ||
<property name="top_attach">0</property> | ||
</packing> | ||
</child> | ||
</object> | ||
</child> | ||
<child type="tab"> | ||
<placeholder/> | ||
</child> | ||
<child> | ||
<placeholder/> | ||
</child> | ||
<child type="tab"> | ||
<placeholder/> | ||
</child> | ||
</object> | ||
<packing> | ||
<property name="expand">False</property> | ||
<property name="fill">True</property> | ||
<property name="position">1</property> | ||
</packing> | ||
</child> | ||
</object> | ||
</child> | ||
<action-widgets> | ||
<action-widget response="-7">closebutton</action-widget> | ||
</action-widgets> | ||
</object> | ||
</interface> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters