Commit a879c599 authored by Balló György's avatar Balló György Committed by Alberts Muktupāvels

Add icons for User menu actions

Suspend and hibernate icons were previously provided by the gnome-power-manager project:
https://git.gnome.org/browse/gnome-power-manager/commit/?id=9a0789eb903293ac936bc0c2190e8b5e5b6573b1
parent 4e63e8f5
......@@ -6,9 +6,11 @@ icons_DATA = \
gnome-panel-clock.png \
gnome-panel-fish.png \
gnome-panel-force-quit.png \
gnome-panel-hibernate.png \
gnome-panel-launcher.png \
gnome-panel-notification-area.png \
gnome-panel-separator.png \
gnome-panel-suspend.png \
gnome-panel.png \
gnome-panel-window-list.png \
gnome-panel-window-menu.png \
......
......@@ -6,9 +6,11 @@ icons_DATA = \
gnome-panel-clock.png \
gnome-panel-fish.png \
gnome-panel-force-quit.png \
gnome-panel-hibernate.png \
gnome-panel-launcher.png \
gnome-panel-notification-area.png \
gnome-panel-separator.png \
gnome-panel-suspend.png \
gnome-panel.png \
gnome-panel-window-list.png \
gnome-panel-window-menu.png \
......
......@@ -6,9 +6,11 @@ icons_DATA = \
gnome-panel-clock.png \
gnome-panel-fish.png \
gnome-panel-force-quit.png \
gnome-panel-hibernate.png \
gnome-panel-launcher.png \
gnome-panel-notification-area.png \
gnome-panel-separator.png \
gnome-panel-suspend.png \
gnome-panel.png \
gnome-panel-window-list.png \
gnome-panel-window-menu.png \
......
......@@ -6,9 +6,11 @@ icons_DATA = \
gnome-panel-clock.png \
gnome-panel-fish.png \
gnome-panel-force-quit.png \
gnome-panel-hibernate.png \
gnome-panel-launcher.png \
gnome-panel-notification-area.png \
gnome-panel-separator.png \
gnome-panel-suspend.png \
gnome-panel.png \
gnome-panel-window-list.png \
gnome-panel-window-menu.png \
......
......@@ -3,6 +3,8 @@ size = 48x48
iconsdir = $(datadir)/icons/hicolor/$(size)/apps
icons_DATA = \
gnome-panel-hibernate.png \
gnome-panel-suspend.png \
gnome-panel.png
icons_SOURCE = \
......
......@@ -6,9 +6,11 @@ icons_DATA = \
gnome-panel-clock.svg \
gnome-panel-fish.svg \
gnome-panel-force-quit.svg \
gnome-panel-hibernate.svg \
gnome-panel-launcher.svg \
gnome-panel-notification-area.svg \
gnome-panel-separator.svg \
gnome-panel-suspend.svg \
gnome-panel.svg \
gnome-panel-window-list.svg \
gnome-panel-window-menu.svg \
......
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<!-- Created with Inkscape (http://www.inkscape.org/) -->
<svg
xmlns:svg="http://www.w3.org/2000/svg"
xmlns="http://www.w3.org/2000/svg"
xmlns:xlink="http://www.w3.org/1999/xlink"
version="1.0"
width="48"
height="48"
id="svg1306">
<defs
id="defs1308">
<linearGradient
x1="40.546875"
y1="1.125"
x2="47.375"
y2="37.75"
id="linearGradient13684"
xlink:href="#linearGradient13678"
gradientUnits="userSpaceOnUse" />
<linearGradient
id="linearGradient13678">
<stop
style="stop-color:#ffffff;stop-opacity:1"
offset="0"
id="stop13680" />
<stop
style="stop-color:#ffffff;stop-opacity:0"
offset="1"
id="stop13682" />
</linearGradient>
<linearGradient
x1="40.546875"
y1="1.125"
x2="47.375"
y2="37.75"
id="linearGradient13702"
xlink:href="#linearGradient13678"
gradientUnits="userSpaceOnUse" />
<linearGradient
id="linearGradient4184">
<stop
style="stop-color:#838383;stop-opacity:1"
offset="0"
id="stop4186" />
<stop
style="stop-color:#bbbbbb;stop-opacity:0"
offset="1"
id="stop4188" />
</linearGradient>
<linearGradient
x1="7.0625"
y1="35.28125"
x2="24.6875"
y2="35.28125"
id="linearGradient4209"
xlink:href="#linearGradient4184"
gradientUnits="userSpaceOnUse"
gradientTransform="matrix(0.673759,0,0,1.084542,6.241576,-3.24763)" />
<linearGradient
id="linearGradient4236">
<stop
style="stop-color:#eeeeee;stop-opacity:1"
offset="0"
id="stop4238" />
<stop
style="stop-color:#eeeeee;stop-opacity:0"
offset="1"
id="stop4240" />
</linearGradient>
<linearGradient
x1="12.277412"
y1="37.205811"
x2="12.221823"
y2="33.758667"
id="linearGradient4242"
xlink:href="#linearGradient4236"
gradientUnits="userSpaceOnUse"
gradientTransform="matrix(1,0,0,1.084542,3.204508,-1.842482)" />
<linearGradient
id="linearGradient2212">
<stop
style="stop-color:#2e3436;stop-opacity:1"
offset="0"
id="stop2214" />
<stop
style="stop-color:#2e3436;stop-opacity:0"
offset="1"
id="stop2216" />
</linearGradient>
<linearGradient
id="linearGradient2187">
<stop
style="stop-color:#babdb6;stop-opacity:1"
offset="0"
id="stop2189" />
<stop
style="stop-color:#eeeeec;stop-opacity:1"
offset="1"
id="stop2191" />
</linearGradient>
<linearGradient
id="linearGradient2179">
<stop
style="stop-color:#ffffff;stop-opacity:1"
offset="0"
id="stop2181" />
<stop
style="stop-color:#eeeeec;stop-opacity:1"
offset="1"
id="stop2183" />
</linearGradient>
<radialGradient
cx="23.098124"
cy="34.511105"
r="20.657619"
fx="23.098124"
fy="34.511105"
id="radialGradient4460"
xlink:href="#linearGradient2212"
gradientUnits="userSpaceOnUse"
gradientTransform="matrix(0.987016,-3.036258e-7,1.235702e-7,0.154497,0.46639,29.0816)" />
<linearGradient
x1="32.57143"
y1="32.428574"
x2="19.499998"
y2="22.357141"
id="linearGradient4462"
xlink:href="#linearGradient2187"
gradientUnits="userSpaceOnUse"
gradientTransform="matrix(1,0,0,0.885726,1.000008,10.98679)" />
<linearGradient
x1="22.5"
y1="18"
x2="25.642859"
y2="19.285715"
id="linearGradient4466"
xlink:href="#linearGradient2179"
gradientUnits="userSpaceOnUse"
gradientTransform="translate(1.000008,9.940941)" />
</defs>
<g
id="layer1">
<path
d="M 44.951788 34.413448 A 20.657619 3.5860415 0 1 1 3.636549,34.413448 A 20.657619 3.5860415 0 1 1 44.951788 34.413448 z"
transform="matrix(1.064982,0,0,2.667528,-0.872845,-54.3647)"
style="opacity:0.74731182;fill:url(#radialGradient4460);fill-opacity:1;stroke:none;stroke-width:1;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1"
id="path2210" />
<path
d="M 11.595947,16.530688 L 38.476667,16.553056 L 42.492024,29.64558 L 42.517278,38.801506 C 42.517278,40.796839 41.565961,41.523596 39.456617,41.523596 L 10.432307,41.557148 C 8.2441489,41.557148 7.4776109,40.797782 7.4776109,38.689134 L 7.5028649,29.7015 L 11.595947,16.530688 z "
style="fill:url(#linearGradient4462);fill-opacity:1;fill-rule:evenodd;stroke:#686a65;stroke-width:1.00000012px;stroke-linecap:butt;stroke-linejoin:round;stroke-opacity:1"
id="path1417" />
<path
d="M 8.0000079,29.940941 L 41.849754,30.040687 L 37.416007,17.897602 L 12.44195,17.98599 L 8.0000079,29.940941 z "
style="fill:url(#linearGradient4466);fill-opacity:1;fill-rule:evenodd;stroke:none;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1"
id="path2159" />
<path
d="M 12.189025,17.505341 L 37.778261,17.461116 L 41.51435,30.089316 L 41.501723,38.761393 C 41.501723,39.868144 41.089891,40.551146 39.608779,40.551146 L 10.336991,40.562202 C 9.105851,40.562202 8.5348099,40.200944 8.5348099,38.841913 L 8.4969289,30.064124 L 12.189025,17.505341 z "
style="opacity:0.61538463;fill:none;fill-opacity:0.75;fill-rule:evenodd;stroke:#ffffff;stroke-width:1.00000048px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1"
id="path2157" />
<rect
width="11.875"
height="6.0327663"
x="11"
y="32"
style="opacity:1;color:#000000;fill:url(#linearGradient4209);fill-opacity:1;fill-rule:evenodd;stroke:none;stroke-width:2.40899992;stroke-linecap:round;stroke-linejoin:round;marker:none;marker-start:none;marker-mid:none;marker-end:none;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1;visibility:visible;display:inline;overflow:visible"
id="rect4174" />
<path
d="M 11.062502,38 C 11.062502,38 11.062502,33.649375 11.062502,33.649375 C 12.89803,37.09738 19.358993,38 24,38 C 24,38 11.062502,38 11.062502,38 z "
style="opacity:0.81142853;fill:url(#linearGradient4242);fill-opacity:1;fill-rule:evenodd;stroke:none;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1"
id="path4194" />
<path
d="M 29.5,32.559777 L 29.5,37.580712"
style="fill:none;fill-opacity:0.75;fill-rule:evenodd;stroke:#ffffff;stroke-width:1.00000048px;stroke-linecap:square;stroke-linejoin:miter;stroke-opacity:0.42372885"
id="path4284" />
<path
d="M 31.5,32.559777 L 31.5,37.580712"
style="fill:none;fill-opacity:0.75;fill-rule:evenodd;stroke:#ffffff;stroke-width:1.00000048px;stroke-linecap:square;stroke-linejoin:miter;stroke-opacity:0.42372885"
id="path4286" />
<path
d="M 33.5,32.559777 L 33.5,37.580712"
style="fill:none;fill-opacity:0.75;fill-rule:evenodd;stroke:#ffffff;stroke-width:1.00000048px;stroke-linecap:square;stroke-linejoin:miter;stroke-opacity:0.42372885"
id="path4288" />
<path
d="M 35.5,32.559777 L 35.5,37.580712"
style="fill:none;fill-opacity:0.75;fill-rule:evenodd;stroke:#ffffff;stroke-width:1.00000048px;stroke-linecap:square;stroke-linejoin:miter;stroke-opacity:0.42372885"
id="path4290" />
<path
d="M 37.5,32.559777 L 37.5,37.580712"
style="fill:none;fill-opacity:0.75;fill-rule:evenodd;stroke:#ffffff;stroke-width:1.00000048px;stroke-linecap:square;stroke-linejoin:miter;stroke-opacity:0.42372885"
id="path4292" />
<path
d="M 28.5,32.549899 L 28.5,37.570834"
style="opacity:0.09714284;fill:none;fill-opacity:0.75;fill-rule:evenodd;stroke:#000000;stroke-width:1.00000048px;stroke-linecap:square;stroke-linejoin:miter;stroke-opacity:1"
id="path4294" />
<path
d="M 30.5,32.609676 L 30.5,37.630611"
style="opacity:0.09714284;fill:none;fill-opacity:0.75;fill-rule:evenodd;stroke:#000000;stroke-width:1.00000048px;stroke-linecap:square;stroke-linejoin:miter;stroke-opacity:1"
id="path4296" />
<path
d="M 32.5,32.609676 L 32.5,37.630611"
style="opacity:0.09714284;fill:none;fill-opacity:0.75;fill-rule:evenodd;stroke:#000000;stroke-width:1.00000048px;stroke-linecap:square;stroke-linejoin:miter;stroke-opacity:1"
id="path4298" />
<path
d="M 34.5,32.609676 L 34.5,37.630611"
style="opacity:0.09714284;fill:none;fill-opacity:0.75;fill-rule:evenodd;stroke:#000000;stroke-width:1.00000048px;stroke-linecap:square;stroke-linejoin:miter;stroke-opacity:1"
id="path4300" />
<path
d="M 36.5,32.609676 L 36.5,37.630611"
style="opacity:0.09714284;fill:none;fill-opacity:0.75;fill-rule:evenodd;stroke:#000000;stroke-width:1.00000048px;stroke-linecap:square;stroke-linejoin:miter;stroke-opacity:1"
id="path4302" />
<path
d="M 10,32.001126 L 10,38 L 22.5625,38 L 10.34375,37.627189 L 10,32.001126 z "
style="opacity:0.18681317;fill:#ffffff;fill-opacity:1;fill-rule:evenodd;stroke:none;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1"
id="path4572" />
<g
transform="translate(-2.336444,2.090765)"
id="g13689">
<path
d="M 46.925968,3.8880343 L 39.95384,13.020388 L 47.047248,13.020388 L 47.047248,16.020148 L 34.475371,16.020148 L 34.475371,15.43334 L 43.399686,3.9716929 L 35.015933,3.9716929 L 35.078433,0.97041721 L 46.988468,0.97041721 L 46.925968,3.8880343 z "
style="font-size:10px;font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;line-height:100%;writing-mode:lr-tb;text-anchor:start;fill:#3465a4;fill-opacity:1;stroke:#204a87;stroke-width:2;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1;font-family:Segoe"
id="path13687" />
<path
d="M 46.925968,3.8880343 L 39.95384,13.020388 L 47.047248,13.020388 L 47.047248,16.020148 L 34.475371,16.020148 L 34.475371,15.43334 L 43.399686,3.9716929 L 35.015933,3.9716929 L 35.078433,0.97041721 L 46.988468,0.97041721"
style="font-size:10px;font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;line-height:100%;writing-mode:lr-tb;text-anchor:start;fill:#3465a4;fill-opacity:1;stroke:none;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1;font-family:Segoe"
id="text12733" />
<path
d="M 35.46875,1.34375 L 35.40625,3.59375 L 43.40625,3.59375 C 43.542681,3.6020985 43.663766,3.6840106 43.722279,3.8075389 C 43.780792,3.9310671 43.767467,4.0766473 43.6875,4.1875 L 34.84375,15.53125 L 34.84375,15.65625 L 46.6875,15.65625 L 46.6875,13.40625 L 39.96875,13.40625 C 39.826696,13.409243 39.695149,13.331702 39.628973,13.205968 C 39.562797,13.080234 39.573358,12.9279 39.65625,12.8125 L 46.5625,3.75 L 46.625,1.34375 L 35.46875,1.34375 z "
style="font-size:10px;font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;line-height:100%;writing-mode:lr-tb;text-anchor:start;opacity:0.21348314;fill:#3465a4;fill-opacity:1;stroke:url(#linearGradient13684);stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1;font-family:Segoe"
id="path13676" />
</g>
<g
transform="matrix(0.567849,0,0,0.567849,1.423195,14.55986)"
id="g13694">
<path
d="M 46.925968,3.8880343 L 39.95384,13.020388 L 47.047248,13.020388 L 47.047248,16.790599 L 34.475371,16.790599 L 34.475371,16.203791 L 43.399686,3.9716929 L 35.015933,3.9716929 L 35.078433,0.97041721 L 46.988468,0.97041721 L 46.925968,3.8880343 z "
style="font-size:10px;font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;line-height:100%;writing-mode:lr-tb;text-anchor:start;fill:#3465a4;fill-opacity:1;stroke:#204a87;stroke-width:3.52206182;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1;font-family:Segoe"
id="path13696" />
<path
d="M 46.925968,3.8880343 L 39.95384,13.020388 L 47.047248,13.020388 L 47.047248,16.020148 L 34.475371,16.020148 L 34.475371,15.43334 L 43.399686,3.9716929 L 35.015933,3.9716929 L 35.078433,0.97041721 L 46.988468,0.97041721"
style="font-size:10px;font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;line-height:100%;writing-mode:lr-tb;text-anchor:start;fill:#3465a4;fill-opacity:1;stroke:none;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1;font-family:Segoe"
id="path13698" />
<path
d="M 35.46875,1.34375 L 35.40625,3.59375 L 43.40625,3.59375 C 43.542681,3.6020985 43.663766,3.6840106 43.722279,3.8075389 C 43.780792,3.9310671 43.767467,4.0766473 43.6875,4.1875 L 34.84375,15.53125 L 34.84375,15.65625 L 46.6875,15.65625 L 46.6875,13.40625 L 39.96875,13.40625 C 39.826696,13.409243 39.695149,13.331702 39.628973,13.205968 C 39.562797,13.080234 39.573358,12.9279 39.65625,12.8125 L 46.5625,3.75 L 46.625,1.34375 L 35.46875,1.34375 z "
style="font-size:10px;font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;line-height:100%;writing-mode:lr-tb;text-anchor:start;opacity:0.21348314;fill:#3465a4;fill-opacity:1;stroke:url(#linearGradient13702);stroke-width:1.76103091px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1;font-family:Segoe"
id="path13700" />
</g>
</g>
</svg>
This diff is collapsed.
......@@ -454,7 +454,7 @@ static PanelAction actions [] = {
},
{
PANEL_ACTION_HIBERNATE,
NULL,
PANEL_ICON_HIBERNATE,
N_("Hibernate"),
NULL,
"ACTION:hibernate:NEW",
......@@ -463,7 +463,7 @@ static PanelAction actions [] = {
},
{
PANEL_ACTION_SUSPEND,
NULL,
PANEL_ICON_SUSPEND,
N_("Suspend"),
NULL,
"ACTION:suspend:NEW",
......@@ -472,7 +472,7 @@ static PanelAction actions [] = {
},
{
PANEL_ACTION_HYBRID_SLEEP,
NULL,
PANEL_ICON_SUSPEND,
N_("Hybrid sleep"),
NULL,
"ACTION:hybrid-sleep:NEW",
......
......@@ -17,6 +17,7 @@
#define PANEL_ICON_FONTS "preferences-desktop-font"
#define PANEL_ICON_FORCE_QUIT "gnome-panel-force-quit"
#define PANEL_ICON_HOME "user-home"
#define PANEL_ICON_HIBERNATE "gnome-panel-hibernate"
#define PANEL_ICON_LAUNCHER "gnome-panel-launcher"
#define PANEL_ICON_LOCKSCREEN "system-lock-screen"
#define PANEL_ICON_LOGOUT "system-log-out"
......@@ -33,8 +34,10 @@
#define PANEL_ICON_SAVED_SEARCH "folder-saved-search"
#define PANEL_ICON_SEARCHTOOL "system-search"
#define PANEL_ICON_SHUTDOWN "system-shutdown"
#define PANEL_ICON_SUSPEND "gnome-panel-suspend"
#define PANEL_ICON_THEME "preferences-desktop-theme"
#define PANEL_ICON_TRASH "user-trash"
#define PANEL_ICON_UNKNOWN "image-missing"
#define PANEL_ICON_USERS "system-users"
#endif /* PANEL_ICON_NAMES_H */
......@@ -421,7 +421,7 @@ panel_menu_items_create_switch_user (gboolean use_icon)
}
setup_menu_item_with_icon (item, panel_menu_icon_get_size (),
NULL, NULL, _("Switch User"));
PANEL_ICON_USERS, NULL, _("Switch User"));
g_signal_connect (item, "activate",
G_CALLBACK (panel_menu_item_activate_switch_user),
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment