Permalink
Browse files

New icons and CMake installation features for it.

  • Loading branch information...
dnohales committed Jan 24, 2012
1 parent f7db407 commit b2be8aeee7cc498591ca63718bcdc4cd58060320
View
@@ -103,3 +103,17 @@ install(TARGETS gablabel RUNTIME DESTINATION bin)
#
include(GSettings)
add_schema("data/es.nohal.Gablabel.gschema.xml")
+
+#
+# Icons
+#
+install(FILES "${CMAKE_SOURCE_DIR}/data/icons/16.png" DESTINATION "${DATADIR_ROOT}/icons/hicolor/16x16/apps" RENAME gablabel.png)
+install(FILES "${CMAKE_SOURCE_DIR}/data/icons/22.png" DESTINATION "${DATADIR_ROOT}/icons/hicolor/22x22/apps" RENAME gablabel.png)
+install(FILES "${CMAKE_SOURCE_DIR}/data/icons/24.png" DESTINATION "${DATADIR_ROOT}/icons/hicolor/24x24/apps" RENAME gablabel.png)
+install(FILES "${CMAKE_SOURCE_DIR}/data/icons/32.png" DESTINATION "${DATADIR_ROOT}/icons/hicolor/32x32/apps" RENAME gablabel.png)
+install(FILES "${CMAKE_SOURCE_DIR}/data/icons/36.png" DESTINATION "${DATADIR_ROOT}/icons/hicolor/36x36/apps" RENAME gablabel.png)
+install(FILES "${CMAKE_SOURCE_DIR}/data/icons/64.png" DESTINATION "${DATADIR_ROOT}/icons/hicolor/64x64/apps" RENAME gablabel.png)
+install(FILES "${CMAKE_SOURCE_DIR}/data/icons/96.png" DESTINATION "${DATADIR_ROOT}/icons/hicolor/96x96/apps" RENAME gablabel.png)
+install(FILES "${CMAKE_SOURCE_DIR}/data/icons/256.png" DESTINATION "${DATADIR_ROOT}/icons/hicolor/256x256/apps" RENAME gablabel.png)
+install(FILES "${CMAKE_SOURCE_DIR}/data/icons/scalable.svg" DESTINATION "${DATADIR_ROOT}/icons/hicolor/scalable/apps" RENAME gablabel.png)
+
View
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
@@ -0,0 +1,99 @@
+<?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"
+ width="120.8"
+ height="120.8"
+ id="svg2"
+ version="1.1"
+ inkscape:version="0.48.1 r9760"
+ sodipodi:docname="scalable.svg">
+ <defs
+ id="defs4" />
+ <sodipodi:namedview
+ id="base"
+ pagecolor="#ffffff"
+ bordercolor="#666666"
+ borderopacity="1.0"
+ inkscape:pageopacity="0.0"
+ inkscape:pageshadow="2"
+ inkscape:zoom="3.959798"
+ inkscape:cx="43.379736"
+ inkscape:cy="44.683636"
+ inkscape:document-units="px"
+ inkscape:current-layer="layer1"
+ showgrid="false"
+ inkscape:window-width="1600"
+ inkscape:window-height="825"
+ inkscape:window-x="0"
+ inkscape:window-y="24"
+ inkscape:window-maximized="1"
+ inkscape:snap-center="true"
+ fit-margin-top="0"
+ fit-margin-left="0"
+ fit-margin-right="0"
+ fit-margin-bottom="0" />
+ <metadata
+ id="metadata7">
+ <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></dc:title>
+ </cc:Work>
+ </rdf:RDF>
+ </metadata>
+ <g
+ inkscape:label="Capa 1"
+ inkscape:groupmode="layer"
+ id="layer1"
+ transform="translate(-216.74285,-414.81933)">
+ <path
+ sodipodi:type="arc"
+ style="fill:#252525;fill-opacity:1;stroke:#000000;stroke-width:0.80000001;stroke-miterlimit:4;stroke-dasharray:none"
+ id="path3004"
+ sodipodi:cx="277.14285"
+ sodipodi:cy="475.21933"
+ sodipodi:rx="60"
+ sodipodi:ry="60"
+ d="m 337.14285,475.21933 c 0,33.13708 -26.86291,60 -60,60 -33.13708,0 -60,-26.86292 -60,-60 0,-33.13709 26.86292,-60 60,-60 33.13709,0 60,26.86291 60,60 z" />
+ <path
+ style="fill:#e6ddd5;fill-opacity:1;stroke:#000000;stroke-width:0.90616977;stroke-miterlimit:4;stroke-dasharray:none"
+ d="m 277.14285,437.71354 c -22.31567,0 -40.40625,15.9546 -40.40625,35.63899 0,9.70341 4.36893,18.52023 11.5,24.94729 -0.0891,6.92359 -0.75835,8.51414 -5.125,14.4253 4.78093,-0.20191 13.39739,-2.83544 17.71875,-6.75444 4.98613,1.94155 10.5119,3.02083 16.3125,3.02083 22.31567,0 40.40625,-15.9546 40.40625,-35.63898 0,-19.68439 -18.09058,-35.63899 -40.40625,-35.63899 z"
+ id="path3006"
+ inkscape:connector-curvature="0"
+ sodipodi:nodetypes="sscccsss" />
+ <text
+ xml:space="preserve"
+ style="font-size:40px;font-style:normal;font-weight:normal;line-height:125%;letter-spacing:0px;word-spacing:0px;fill:#000000;fill-opacity:1;stroke:none;font-family:Bitstream Vera Sans"
+ x="275"
+ y="477.71933"
+ id="text3010"
+ sodipodi:linespacing="125%"><tspan
+ sodipodi:role="line"
+ x="275"
+ y="477.71933"
+ id="tspan3014" /></text>
+ <text
+ xml:space="preserve"
+ style="font-size:61.98803711px;font-style:normal;font-variant:normal;font-weight:bold;font-stretch:normal;text-align:start;line-height:125%;letter-spacing:0px;word-spacing:0px;writing-mode:lr-tb;text-anchor:start;fill:#252525;fill-opacity:1;stroke:none;font-family:Comic Sans MS;-inkscape-font-specification:Comic Sans MS Bold"
+ x="252.69943"
+ y="494.87054"
+ id="text3018"
+ sodipodi:linespacing="125%"><tspan
+ sodipodi:role="line"
+ id="tspan3020"
+ x="252.69943"
+ y="494.87054"
+ style="font-size:61.98803711px;font-style:normal;font-variant:normal;font-weight:bold;font-stretch:normal;text-align:start;line-height:125%;writing-mode:lr-tb;text-anchor:start;fill:#252525;fill-opacity:1;stroke:none;font-family:Comic Sans MS;-inkscape-font-specification:Comic Sans MS Bold">A</tspan></text>
+ </g>
+</svg>
View
@@ -19,6 +19,8 @@ namespace Gablabel
var central_widget = builder.get_object("central_widget") as VBox;
(builder.get_object("mainwindow") as Window).remove(central_widget);
this.add(central_widget);
+ this.set_default_icon_name("gablabel");
+ this.set_title(_("Gablabel Translator"));
webView = new TranslatorWebView();
(builder.get_object("web_view_parent") as ScrolledWindow).add(webView);
@@ -90,10 +92,11 @@ namespace Gablabel
"Damián Nohales <damiannohales@gmail.com>"
};
- dialog.copyright = _("Copyright © 2011 by Damián Nohales");
+ dialog.copyright = _("Copyright © 2012 by Damián Nohales");
dialog.program_name = _("Gablabel Translator");
dialog.version = Config.PACKAGE_VERSION;
dialog.authors = authors;
+ dialog.logo_icon_name = "gablabel";
dialog.run();
dialog.destroy();
@@ -25,7 +25,7 @@ namespace Gablabel
itemClipboard = menuBuilder.get_object("clipboard") as MenuItem;
itemSelected = menuBuilder.get_object("selected") as MenuItem;
- indicator = new Indicator("Gablabel", "indicator-messages", IndicatorCategory.APPLICATION_STATUS);
+ indicator = new Indicator("Gablabel", "gablabel", IndicatorCategory.APPLICATION_STATUS);
indicator.set_menu(statusmenu);
//Signal connection

0 comments on commit b2be8ae

Please sign in to comment.