[Xfce4-commits] [apps/xfce4-taskmanager] 15/21: Add a custom icon for the identify button
noreply at xfce.org
noreply at xfce.org
Thu Jan 26 22:59:19 CET 2017
This is an automated email from the git hooks/post-receive script.
ochosi pushed a commit to branch master
in repository apps/xfce4-taskmanager.
commit 5f8f6beffa86d36c736ade252a905ded02fca1d9
Author: Simon Steinbeiss <simon.steinbeiss at elfenbeinturm.at>
Date: Thu Jan 26 01:25:51 2017 +0100
Add a custom icon for the identify button
---
Makefile.am | 3 +-
data/Makefile.am | 2 +
data/icons/16x16/Makefile.am | 3 ++
data/icons/16x16/xc_crosshair.png | Bin 0 -> 195 bytes
data/icons/16x16/xc_crosshair.svg | 98 +++++++++++++++++++++++++++++++++++
data/icons/24x24/Makefile.am | 3 ++
data/icons/24x24/xc_crosshair.png | Bin 0 -> 211 bytes
data/icons/24x24/xc_crosshair.svg | 98 +++++++++++++++++++++++++++++++++++
data/icons/Makefile.am | 17 ++++++
data/icons/scalable/Makefile.am | 3 ++
data/icons/scalable/xc_crosshair.svg | 98 +++++++++++++++++++++++++++++++++++
src/process-window.c | 6 +--
12 files changed, 327 insertions(+), 4 deletions(-)
diff --git a/Makefile.am b/Makefile.am
index e9290de..0877768 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -1,6 +1,7 @@
ACLOCAL_AMFLAGS = -I m4 ${ACLOCAL_FLAGS}
SUBDIRS = \
+ data \
po \
src
@@ -17,7 +18,7 @@ EXTRA_DIST = \
intltool-merge.in \
intltool-update.in \
$(desktop_in_files)
-
+
DISTCLEANFILES = \
intltool-extract \
intltool-merge \
diff --git a/data/Makefile.am b/data/Makefile.am
new file mode 100644
index 0000000..5621c06
--- /dev/null
+++ b/data/Makefile.am
@@ -0,0 +1,2 @@
+SUBDIRS = icons
+
diff --git a/data/icons/16x16/Makefile.am b/data/icons/16x16/Makefile.am
new file mode 100644
index 0000000..0b1cf90
--- /dev/null
+++ b/data/icons/16x16/Makefile.am
@@ -0,0 +1,3 @@
+iconsdir = $(datadir)/icons/hicolor/16x16/apps
+icons_DATA = xc_crosshair.png
+EXTRA_DIST = $(icons_DATA)
diff --git a/data/icons/16x16/xc_crosshair.png b/data/icons/16x16/xc_crosshair.png
new file mode 100644
index 0000000..55cadfa
Binary files /dev/null and b/data/icons/16x16/xc_crosshair.png differ
diff --git a/data/icons/16x16/xc_crosshair.svg b/data/icons/16x16/xc_crosshair.svg
new file mode 100644
index 0000000..3d3267d
--- /dev/null
+++ b/data/icons/16x16/xc_crosshair.svg
@@ -0,0 +1,98 @@
+<?xml version="1.0" encoding="UTF-8" standalone="no"?>
+<!-- Created with Inkscape (http://www.inkscape.org/) -->
+
+<svg
+ xmlns:dc="http://purl.org/dc/elements/1.1/"
+ xmlns:cc="http://creativecommons.org/ns#"
+ xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
+ xmlns:svg="http://www.w3.org/2000/svg"
+ xmlns="http://www.w3.org/2000/svg"
+ xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
+ xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
+ height="16"
+ width="16"
+ viewBox="0 0 16 16"
+ id="svg2"
+ version="1.1"
+ inkscape:version="0.91 r13725"
+ sodipodi:docname="xc_crosshair.svg">
+ <defs
+ id="defs8" />
+ <sodipodi:namedview
+ pagecolor="#ffffff"
+ bordercolor="#666666"
+ borderopacity="1"
+ objecttolerance="10"
+ gridtolerance="10"
+ guidetolerance="10"
+ inkscape:pageopacity="0"
+ inkscape:pageshadow="2"
+ inkscape:window-width="1214"
+ inkscape:window-height="720"
+ id="namedview6"
+ showgrid="true"
+ units="px"
+ inkscape:zoom="20.297462"
+ inkscape:cx="2.0432798"
+ inkscape:cy="5.760432"
+ inkscape:window-x="0"
+ inkscape:window-y="27"
+ inkscape:window-maximized="0"
+ inkscape:current-layer="svg2">
+ <inkscape:grid
+ type="xygrid"
+ id="grid3230" />
+ </sodipodi:namedview>
+ <metadata
+ id="metadata4">
+ <rdf:RDF>
+ <cc:Work
+ rdf:about="">
+ <dc:format>image/svg+xml</dc:format>
+ <dc:type
+ rdf:resource="http://purl.org/dc/dcmitype/StillImage" />
+ <dc:title />
+ </cc:Work>
+ </rdf:RDF>
+ </metadata>
+ <path
+ inkscape:connector-curvature="0"
+ id="path3196"
+ d="m 8.5,15 0,-6"
+ style="fill:none;fill-rule:evenodd;stroke:#ffffff;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1;opacity:0.3" />
+ <path
+ style="fill:none;fill-rule:evenodd;stroke:#ffffff;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1;opacity:0.3"
+ d="m 8.5,8 0,-6"
+ id="path3198"
+ inkscape:connector-curvature="0" />
+ <path
+ inkscape:connector-curvature="0"
+ id="path3200"
+ d="m 9,8.5 6,0"
+ style="fill:none;fill-rule:evenodd;stroke:#ffffff;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1;opacity:0.3" />
+ <path
+ style="fill:none;fill-rule:evenodd;stroke:#ffffff;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1;opacity:0.3"
+ d="m 2,8.5 6,0"
+ id="path3202"
+ inkscape:connector-curvature="0" />
+ <path
+ style="fill:none;fill-rule:evenodd;stroke:#000000;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1"
+ d="m 8.5,14 0,-6"
+ id="path3232"
+ inkscape:connector-curvature="0" />
+ <path
+ inkscape:connector-curvature="0"
+ id="path3234"
+ d="m 8.5,7 0,-6"
+ style="fill:none;fill-rule:evenodd;stroke:#000000;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1" />
+ <path
+ style="fill:none;fill-rule:evenodd;stroke:#000000;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1"
+ d="m 9,7.5 6,0"
+ id="path3236"
+ inkscape:connector-curvature="0" />
+ <path
+ inkscape:connector-curvature="0"
+ id="path3238"
+ d="m 2,7.5 6,0"
+ style="fill:none;fill-rule:evenodd;stroke:#000000;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1" />
+</svg>
diff --git a/data/icons/24x24/Makefile.am b/data/icons/24x24/Makefile.am
new file mode 100644
index 0000000..eedc319
--- /dev/null
+++ b/data/icons/24x24/Makefile.am
@@ -0,0 +1,3 @@
+iconsdir = $(datadir)/icons/hicolor/24x24/actions
+icons_DATA = xc_crosshair.png
+EXTRA_DIST = $(icons_DATA)
diff --git a/data/icons/24x24/xc_crosshair.png b/data/icons/24x24/xc_crosshair.png
new file mode 100644
index 0000000..69770d7
Binary files /dev/null and b/data/icons/24x24/xc_crosshair.png differ
diff --git a/data/icons/24x24/xc_crosshair.svg b/data/icons/24x24/xc_crosshair.svg
new file mode 100644
index 0000000..a91908c
--- /dev/null
+++ b/data/icons/24x24/xc_crosshair.svg
@@ -0,0 +1,98 @@
+<?xml version="1.0" encoding="UTF-8" standalone="no"?>
+<!-- Created with Inkscape (http://www.inkscape.org/) -->
+
+<svg
+ xmlns:dc="http://purl.org/dc/elements/1.1/"
+ xmlns:cc="http://creativecommons.org/ns#"
+ xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
+ xmlns:svg="http://www.w3.org/2000/svg"
+ xmlns="http://www.w3.org/2000/svg"
+ xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
+ xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
+ height="24"
+ width="24"
+ viewBox="0 0 24 24"
+ id="svg2"
+ version="1.1"
+ inkscape:version="0.91 r13725"
+ sodipodi:docname="xc_crosshair.svg">
+ <defs
+ id="defs8" />
+ <sodipodi:namedview
+ pagecolor="#ffffff"
+ bordercolor="#666666"
+ borderopacity="1"
+ objecttolerance="10"
+ gridtolerance="10"
+ guidetolerance="10"
+ inkscape:pageopacity="0"
+ inkscape:pageshadow="2"
+ inkscape:window-width="1214"
+ inkscape:window-height="720"
+ id="namedview6"
+ showgrid="true"
+ units="px"
+ inkscape:zoom="20.297462"
+ inkscape:cx="7.9553492"
+ inkscape:cy="11.672501"
+ inkscape:window-x="0"
+ inkscape:window-y="27"
+ inkscape:window-maximized="0"
+ inkscape:current-layer="svg2">
+ <inkscape:grid
+ type="xygrid"
+ id="grid3230" />
+ </sodipodi:namedview>
+ <metadata
+ id="metadata4">
+ <rdf:RDF>
+ <cc:Work
+ rdf:about="">
+ <dc:format>image/svg+xml</dc:format>
+ <dc:type
+ rdf:resource="http://purl.org/dc/dcmitype/StillImage" />
+ <dc:title />
+ </cc:Work>
+ </rdf:RDF>
+ </metadata>
+ <path
+ inkscape:connector-curvature="0"
+ id="path3196"
+ d="m 11.5,22 0,-8"
+ style="fill:none;fill-rule:evenodd;stroke:#ffffff;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1;opacity:0.3" />
+ <path
+ style="fill:none;fill-rule:evenodd;stroke:#ffffff;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1;opacity:0.3"
+ d="m 11.5,13.000001 0,-8.0000006"
+ id="path3198"
+ inkscape:connector-curvature="0" />
+ <path
+ inkscape:connector-curvature="0"
+ id="path3200"
+ d="m 12,13.5 8,0"
+ style="fill:none;fill-rule:evenodd;stroke:#ffffff;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1;opacity:0.3" />
+ <path
+ style="fill:none;fill-rule:evenodd;stroke:#ffffff;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1;opacity:0.3"
+ d="m 3,13.5 8,0"
+ id="path3202"
+ inkscape:connector-curvature="0" />
+ <path
+ style="fill:none;fill-rule:evenodd;stroke:#000000;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1"
+ d="m 11.5,21 0,-8"
+ id="path3232"
+ inkscape:connector-curvature="0" />
+ <path
+ inkscape:connector-curvature="0"
+ id="path3234"
+ d="m 11.5,12.000001 0,-8.0000006"
+ style="fill:none;fill-rule:evenodd;stroke:#000000;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1" />
+ <path
+ style="fill:none;fill-rule:evenodd;stroke:#000000;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1"
+ d="m 12,12.5 8,0"
+ id="path3236"
+ inkscape:connector-curvature="0" />
+ <path
+ inkscape:connector-curvature="0"
+ id="path3238"
+ d="m 3,12.5 8,0"
+ style="fill:none;fill-rule:evenodd;stroke:#000000;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1" />
+</svg>
diff --git a/data/icons/Makefile.am b/data/icons/Makefile.am
new file mode 100644
index 0000000..967aebb
--- /dev/null
+++ b/data/icons/Makefile.am
@@ -0,0 +1,17 @@
+SUBDIRS = 16x16 24x24 scalable
+
+gtk_update_icon_cache = gtk-update-icon-cache -f -t $(datadir)/icons/hicolor
+
+install-data-hook:
+ @-if test -z "$(DESTDIR)"; then \
+ echo "Updating Gtk icon cache."; \
+ $(gtk_update_icon_cache); \
+ else \
+ echo "*** Icon cache not updated. Remember to run:"; \
+ echo "***"; \
+ echo "*** $(gtk_update_icon_cache)"; \
+ echo "***"; \
+ fi
+
+uninstall-local:
+ -rm $(datadir)/icons/hicolor/icon-theme.cache
diff --git a/data/icons/scalable/Makefile.am b/data/icons/scalable/Makefile.am
new file mode 100644
index 0000000..1985234
--- /dev/null
+++ b/data/icons/scalable/Makefile.am
@@ -0,0 +1,3 @@
+iconsdir = $(datadir)/icons/hicolor/scalable/actions
+icons_DATA = xc_crosshair.svg
+EXTRA_DIST = $(icons_DATA)
diff --git a/data/icons/scalable/xc_crosshair.svg b/data/icons/scalable/xc_crosshair.svg
new file mode 100644
index 0000000..a91908c
--- /dev/null
+++ b/data/icons/scalable/xc_crosshair.svg
@@ -0,0 +1,98 @@
+<?xml version="1.0" encoding="UTF-8" standalone="no"?>
+<!-- Created with Inkscape (http://www.inkscape.org/) -->
+
+<svg
+ xmlns:dc="http://purl.org/dc/elements/1.1/"
+ xmlns:cc="http://creativecommons.org/ns#"
+ xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
+ xmlns:svg="http://www.w3.org/2000/svg"
+ xmlns="http://www.w3.org/2000/svg"
+ xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
+ xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
+ height="24"
+ width="24"
+ viewBox="0 0 24 24"
+ id="svg2"
+ version="1.1"
+ inkscape:version="0.91 r13725"
+ sodipodi:docname="xc_crosshair.svg">
+ <defs
+ id="defs8" />
+ <sodipodi:namedview
+ pagecolor="#ffffff"
+ bordercolor="#666666"
+ borderopacity="1"
+ objecttolerance="10"
+ gridtolerance="10"
+ guidetolerance="10"
+ inkscape:pageopacity="0"
+ inkscape:pageshadow="2"
+ inkscape:window-width="1214"
+ inkscape:window-height="720"
+ id="namedview6"
+ showgrid="true"
+ units="px"
+ inkscape:zoom="20.297462"
+ inkscape:cx="7.9553492"
+ inkscape:cy="11.672501"
+ inkscape:window-x="0"
+ inkscape:window-y="27"
+ inkscape:window-maximized="0"
+ inkscape:current-layer="svg2">
+ <inkscape:grid
+ type="xygrid"
+ id="grid3230" />
+ </sodipodi:namedview>
+ <metadata
+ id="metadata4">
+ <rdf:RDF>
+ <cc:Work
+ rdf:about="">
+ <dc:format>image/svg+xml</dc:format>
+ <dc:type
+ rdf:resource="http://purl.org/dc/dcmitype/StillImage" />
+ <dc:title />
+ </cc:Work>
+ </rdf:RDF>
+ </metadata>
+ <path
+ inkscape:connector-curvature="0"
+ id="path3196"
+ d="m 11.5,22 0,-8"
+ style="fill:none;fill-rule:evenodd;stroke:#ffffff;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1;opacity:0.3" />
+ <path
+ style="fill:none;fill-rule:evenodd;stroke:#ffffff;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1;opacity:0.3"
+ d="m 11.5,13.000001 0,-8.0000006"
+ id="path3198"
+ inkscape:connector-curvature="0" />
+ <path
+ inkscape:connector-curvature="0"
+ id="path3200"
+ d="m 12,13.5 8,0"
+ style="fill:none;fill-rule:evenodd;stroke:#ffffff;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1;opacity:0.3" />
+ <path
+ style="fill:none;fill-rule:evenodd;stroke:#ffffff;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1;opacity:0.3"
+ d="m 3,13.5 8,0"
+ id="path3202"
+ inkscape:connector-curvature="0" />
+ <path
+ style="fill:none;fill-rule:evenodd;stroke:#000000;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1"
+ d="m 11.5,21 0,-8"
+ id="path3232"
+ inkscape:connector-curvature="0" />
+ <path
+ inkscape:connector-curvature="0"
+ id="path3234"
+ d="m 11.5,12.000001 0,-8.0000006"
+ style="fill:none;fill-rule:evenodd;stroke:#000000;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1" />
+ <path
+ style="fill:none;fill-rule:evenodd;stroke:#000000;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1"
+ d="m 12,12.5 8,0"
+ id="path3236"
+ inkscape:connector-curvature="0" />
+ <path
+ inkscape:connector-curvature="0"
+ id="path3238"
+ d="m 3,12.5 8,0"
+ style="fill:none;fill-rule:evenodd;stroke:#000000;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1" />
+</svg>
diff --git a/src/process-window.c b/src/process-window.c
index a6b08d9..b7d925e 100644
--- a/src/process-window.c
+++ b/src/process-window.c
@@ -247,9 +247,9 @@ xtm_process_window_init (XtmProcessWindow *window)
window->settings_button = xtm_settings_tool_button_new ();
gtk_toolbar_insert (GTK_TOOLBAR (window->toolbar), GTK_TOOL_ITEM (window->settings_button), 1);
- icon = gtk_image_new_from_icon_name ("edit-find", GTK_ICON_SIZE_SMALL_TOOLBAR);
- xwininfo = gtk_tool_button_new (icon, _("Identify"));
- gtk_widget_set_tooltip_text (GTK_WIDGET (xwininfo), _("Identify an open window"));
+ icon = gtk_image_new_from_icon_name ("xc_crosshair", GTK_ICON_SIZE_SMALL_TOOLBAR);
+ xwininfo = gtk_tool_button_new (icon, _("Identify Window"));
+ gtk_widget_set_tooltip_text (GTK_WIDGET (xwininfo), _("Identify an open window by clicking on it."));
gtk_toolbar_insert (GTK_TOOLBAR (window->toolbar), GTK_TOOL_ITEM (xwininfo), 2);
g_signal_connect (G_OBJECT (xwininfo), "clicked",
G_CALLBACK (xwininfo_clicked_cb), window);
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.
More information about the Xfce4-commits
mailing list