Commit 696b1cc38b73a5b5763324175aa1a6a91bc68fb0
1 parent
6ecc74f1
Exists in
master
and in
2 other branches
Adjustments for openSUSE 15.2.
Showing
4 changed files
with
174 additions
and
2 deletions
Show diff stats
@@ -0,0 +1,84 @@ | @@ -0,0 +1,84 @@ | ||
1 | +<?xml version="1.0" encoding="UTF-8" standalone="no"?> | ||
2 | +<svg | ||
3 | + xmlns:dc="http://purl.org/dc/elements/1.1/" | ||
4 | + xmlns:cc="http://creativecommons.org/ns#" | ||
5 | + xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" | ||
6 | + xmlns:svg="http://www.w3.org/2000/svg" | ||
7 | + xmlns="http://www.w3.org/2000/svg" | ||
8 | + xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd" | ||
9 | + xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape" | ||
10 | + version="1.1" | ||
11 | + id="svg851" | ||
12 | + width="256" | ||
13 | + height="256" | ||
14 | + viewBox="0 0 256 256" | ||
15 | + sodipodi:docname="gtk-connect-symbolic.svg" | ||
16 | + inkscape:version="1.0.1 (3bc2e813f5, 2020-09-07)"> | ||
17 | + <metadata | ||
18 | + id="metadata857"> | ||
19 | + <rdf:RDF> | ||
20 | + <cc:Work | ||
21 | + rdf:about=""> | ||
22 | + <dc:format>image/svg+xml</dc:format> | ||
23 | + <dc:type | ||
24 | + rdf:resource="http://purl.org/dc/dcmitype/StillImage" /> | ||
25 | + <dc:title></dc:title> | ||
26 | + </cc:Work> | ||
27 | + </rdf:RDF> | ||
28 | + </metadata> | ||
29 | + <defs | ||
30 | + id="defs855"> | ||
31 | + <marker | ||
32 | + style="overflow:visible" | ||
33 | + id="Arrow1Lstart" | ||
34 | + refX="0.0" | ||
35 | + refY="0.0" | ||
36 | + orient="auto" | ||
37 | + inkscape:stockid="Arrow1Lstart" | ||
38 | + inkscape:isstock="true"> | ||
39 | + <path | ||
40 | + transform="scale(0.8) translate(12.5,0)" | ||
41 | + style="fill-rule:evenodd;stroke:#000000;stroke-width:1.0pt" | ||
42 | + d="M 0.0,0.0 L 5.0,-5.0 L -12.5,0.0 L 5.0,5.0 L 0.0,0.0 z " | ||
43 | + id="path1007" /> | ||
44 | + </marker> | ||
45 | + </defs> | ||
46 | + <sodipodi:namedview | ||
47 | + pagecolor="#ffffff" | ||
48 | + bordercolor="#666666" | ||
49 | + borderopacity="1" | ||
50 | + objecttolerance="10" | ||
51 | + gridtolerance="10" | ||
52 | + guidetolerance="10" | ||
53 | + inkscape:pageopacity="0" | ||
54 | + inkscape:pageshadow="2" | ||
55 | + inkscape:window-width="1366" | ||
56 | + inkscape:window-height="713" | ||
57 | + id="namedview853" | ||
58 | + showgrid="false" | ||
59 | + inkscape:zoom="1.3921165" | ||
60 | + inkscape:cx="99.069109" | ||
61 | + inkscape:cy="184.6652" | ||
62 | + inkscape:window-x="0" | ||
63 | + inkscape:window-y="25" | ||
64 | + inkscape:window-maximized="1" | ||
65 | + inkscape:current-layer="g859" | ||
66 | + inkscape:document-rotation="0" /> | ||
67 | + <g | ||
68 | + inkscape:groupmode="layer" | ||
69 | + inkscape:label="Image" | ||
70 | + id="g859"> | ||
71 | + <g | ||
72 | + id="g923" | ||
73 | + transform="matrix(3.7795276,0,0,3.7795276,-118.40429,8.6123775)"> | ||
74 | + <path | ||
75 | + id="rect883-3" | ||
76 | + style="opacity:1;fill:#000000;fill-opacity:1;stroke:none;stroke-width:0.858311;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1" | ||
77 | + d="m 92.554935,8.5779117 c -1.798383,-0.1481724 -3.650627,1.2722474 -3.264892,3.1739583 0,13.525103 0,27.050206 0,40.575309 -0.01033,1.949711 3.647396,3.05186 4.472053,1.706431 0,-15.097123 0,-30.194245 0,-45.2913683 -0.392532,-0.1087998 -0.799794,-0.1644515 -1.207161,-0.16433 z m 4.073796,-9.29504033 c -2.07079,-0.0714654 -3.476923,2.03267503 -3.165182,3.95774393 0.01085,19.2643707 -0.0217,38.5298257 0.01628,57.7935187 0.126716,2.110405 2.653929,3.534377 4.522972,2.533701 0,-21.322901 0,-42.645803 0,-63.96870376 -0.426607,-0.20655366 -0.89981,-0.31703838 -1.374071,-0.31625987 z" /> | ||
78 | + <path | ||
79 | + id="path930-7" | ||
80 | + style="opacity:1;fill:#000000;fill-opacity:1;stroke:none;stroke-width:1.11486;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1" | ||
81 | + d="M 82.489067,12.90927 A 15.467497,18.678622 0 0 0 68.038271,24.929209 H 52.736878 c -1.91384,0 -3.45457,1.540729 -3.45457,3.454569 v 6.097817 c 0,1.913843 1.54073,3.454572 3.45457,3.454572 h 15.205791 a 15.467497,18.678622 0 0 0 14.546398,12.330512 15.467497,18.678622 0 0 0 7.232118,-2.168342 V 15.077612 A 15.467497,18.678622 0 0 0 82.489067,12.90927 Z" /> | ||
82 | + </g> | ||
83 | + </g> | ||
84 | +</svg> |
@@ -0,0 +1,84 @@ | @@ -0,0 +1,84 @@ | ||
1 | +<?xml version="1.0" encoding="UTF-8" standalone="no"?> | ||
2 | +<svg | ||
3 | + xmlns:dc="http://purl.org/dc/elements/1.1/" | ||
4 | + xmlns:cc="http://creativecommons.org/ns#" | ||
5 | + xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" | ||
6 | + xmlns:svg="http://www.w3.org/2000/svg" | ||
7 | + xmlns="http://www.w3.org/2000/svg" | ||
8 | + xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd" | ||
9 | + xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape" | ||
10 | + version="1.1" | ||
11 | + id="svg851" | ||
12 | + width="256" | ||
13 | + height="256" | ||
14 | + viewBox="0 0 256 256" | ||
15 | + sodipodi:docname="gtk-disconnect-symbolic.svg" | ||
16 | + inkscape:version="1.0.1 (3bc2e813f5, 2020-09-07)"> | ||
17 | + <metadata | ||
18 | + id="metadata857"> | ||
19 | + <rdf:RDF> | ||
20 | + <cc:Work | ||
21 | + rdf:about=""> | ||
22 | + <dc:format>image/svg+xml</dc:format> | ||
23 | + <dc:type | ||
24 | + rdf:resource="http://purl.org/dc/dcmitype/StillImage" /> | ||
25 | + <dc:title></dc:title> | ||
26 | + </cc:Work> | ||
27 | + </rdf:RDF> | ||
28 | + </metadata> | ||
29 | + <defs | ||
30 | + id="defs855"> | ||
31 | + <marker | ||
32 | + style="overflow:visible" | ||
33 | + id="Arrow1Lstart" | ||
34 | + refX="0.0" | ||
35 | + refY="0.0" | ||
36 | + orient="auto" | ||
37 | + inkscape:stockid="Arrow1Lstart" | ||
38 | + inkscape:isstock="true"> | ||
39 | + <path | ||
40 | + transform="scale(0.8) translate(12.5,0)" | ||
41 | + style="fill-rule:evenodd;stroke:#000000;stroke-width:1.0pt" | ||
42 | + d="M 0.0,0.0 L 5.0,-5.0 L -12.5,0.0 L 5.0,5.0 L 0.0,0.0 z " | ||
43 | + id="path1007" /> | ||
44 | + </marker> | ||
45 | + </defs> | ||
46 | + <sodipodi:namedview | ||
47 | + pagecolor="#ffffff" | ||
48 | + bordercolor="#666666" | ||
49 | + borderopacity="1" | ||
50 | + objecttolerance="10" | ||
51 | + gridtolerance="10" | ||
52 | + guidetolerance="10" | ||
53 | + inkscape:pageopacity="0" | ||
54 | + inkscape:pageshadow="2" | ||
55 | + inkscape:window-width="1366" | ||
56 | + inkscape:window-height="713" | ||
57 | + id="namedview853" | ||
58 | + showgrid="false" | ||
59 | + inkscape:zoom="1.3921165" | ||
60 | + inkscape:cx="108.83539" | ||
61 | + inkscape:cy="125.36992" | ||
62 | + inkscape:window-x="0" | ||
63 | + inkscape:window-y="25" | ||
64 | + inkscape:window-maximized="1" | ||
65 | + inkscape:current-layer="g859" | ||
66 | + inkscape:document-rotation="0" /> | ||
67 | + <g | ||
68 | + inkscape:groupmode="layer" | ||
69 | + inkscape:label="Image" | ||
70 | + id="g859"> | ||
71 | + <g | ||
72 | + id="g927" | ||
73 | + transform="matrix(3.7795276,0,0,3.7795276,-161.57965,-402.67362)"> | ||
74 | + <path | ||
75 | + id="rect883-3-6" | ||
76 | + style="opacity:1;fill:#000000;fill-opacity:1;stroke:none;stroke-width:0.858311;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1" | ||
77 | + d="m 103.7142,117.39733 c -1.79838,-0.14817 -3.65063,1.27225 -3.26489,3.17396 0,13.5251 0,27.0502 0,40.5753 -0.0103,1.94971 3.6474,3.05189 4.47205,1.70644 0,-15.09713 0,-30.19425 0,-45.29137 -0.39253,-0.1088 -0.79979,-0.16445 -1.20716,-0.16433 z m 4.0738,-9.29504 c -2.07079,-0.0715 -3.47692,2.03267 -3.16518,3.95774 0.0108,19.26437 -0.0217,38.52983 0.0163,57.79352 0.12672,2.11041 2.65393,3.53439 4.52297,2.5337 0,-21.3229 0,-42.6458 0,-63.9687 -0.42661,-0.20656 -0.89981,-0.31704 -1.37407,-0.31626 z" /> | ||
78 | + <path | ||
79 | + id="path930" | ||
80 | + style="opacity:1;fill:#000000;fill-opacity:1;stroke:none;stroke-width:1.11486;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1" | ||
81 | + d="M 77.280561,122.17098 A 15.467497,18.678622 0 0 0 62.829766,134.19091 H 47.528374 c -1.913834,0 -3.45457,1.54073 -3.45457,3.45457 v 6.09782 c 0,1.91384 1.540736,3.45457 3.45457,3.45457 h 15.20579 a 15.467497,18.678622 0 0 0 14.546397,12.33051 15.467497,18.678622 0 0 0 7.463112,-2.3182 v -4.08812 h 8.846487 c 1.75914,0 3.175,-1.41638 3.175,-3.17552 v -2.35489 c 0,-1.75914 -1.41586,-3.17552 -3.175,-3.17552 h -8.846487 v -7.1329 h 8.901264 c 1.759143,0 3.175518,-1.41638 3.175518,-3.17552 v -2.35489 c 0,-1.75914 -1.416375,-3.17552 -3.175518,-3.17552 h -8.901264 v -4.0876 a 15.467497,18.678622 0 0 0 -7.463112,-2.31872 z" /> | ||
82 | + </g> | ||
83 | + </g> | ||
84 | +</svg> |
src/objects/actions/button.c
@@ -42,8 +42,9 @@ | @@ -42,8 +42,9 @@ | ||
42 | 42 | ||
43 | g_autofree gchar * icon_name = g_action_get_icon_name(action); | 43 | g_autofree gchar * icon_name = g_action_get_icon_name(action); |
44 | if(icon_name) { | 44 | if(icon_name) { |
45 | - if(symbolic && !strstr(icon_name,"-symbolic")) { | ||
46 | - g_autofree gchar * name = g_strconcat(icon_name,"-symbolic",NULL); | 45 | + |
46 | + if(symbolic && !g_str_has_suffix(icon_name,"-symbolic")) { | ||
47 | + g_autofree gchar * name = g_strconcat(icon_name + (g_str_has_prefix(icon_name,"gtk-") ? 4 : 0),"-symbolic",NULL); | ||
47 | return gtk_button_new_from_icon_name(name,icon_size); | 48 | return gtk_button_new_from_icon_name(name,icon_size); |
48 | } | 49 | } |
49 | return gtk_button_new_from_icon_name(icon_name,icon_size); | 50 | return gtk_button_new_from_icon_name(icon_name,icon_size); |
src/objects/window/window.c
@@ -611,9 +611,11 @@ | @@ -611,9 +611,11 @@ | ||
611 | #ifdef G_OS_UNIX | 611 | #ifdef G_OS_UNIX |
612 | style = PW3270_UI_STYLE_GNOME; | 612 | style = PW3270_UI_STYLE_GNOME; |
613 | g_settings_set_boolean(settings,"menubar-visible",FALSE); | 613 | g_settings_set_boolean(settings,"menubar-visible",FALSE); |
614 | + g_settings_set_int(settings,"header-icon-type",1); | ||
614 | #else | 615 | #else |
615 | style = PW3270_UI_STYLE_CLASSICAL; | 616 | style = PW3270_UI_STYLE_CLASSICAL; |
616 | g_settings_set_boolean(settings,"menubar-visible",TRUE); | 617 | g_settings_set_boolean(settings,"menubar-visible",TRUE); |
618 | + g_settings_set_int(settings,"header-icon-type",0); | ||
617 | #endif // G_OS_UNIX | 619 | #endif // G_OS_UNIX |
618 | 620 | ||
619 | g_settings_set_boolean(settings,"toolbar-visible",TRUE); | 621 | g_settings_set_boolean(settings,"toolbar-visible",TRUE); |
@@ -622,6 +624,7 @@ | @@ -622,6 +624,7 @@ | ||
622 | 624 | ||
623 | } | 625 | } |
624 | 626 | ||
627 | + | ||
625 | if(style == PW3270_UI_STYLE_GNOME) { | 628 | if(style == PW3270_UI_STYLE_GNOME) { |
626 | 629 | ||
627 | // Create header bar | 630 | // Create header bar |