diff --git a/src/icons.c b/src/icons.c index 82c1d5d..0e79676 100644 --- a/src/icons.c +++ b/src/icons.c @@ -1,196 +1,227 @@ /* icons.c - GPA icons * Copyright (C) 2000, 2001 OpenIT GmbH Copyright (C) 2008 g10 Code GmbH. This file is part of GPA. GPA 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. GPA 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. */ #ifdef HAVE_CONFIG_H # include #endif #include #include #include #include #include #include "i18n.h" #include "icons.h" #include "org.gnupg.gpa.src.h" #include "gpa.h" const char *icons_string = "" // blue_key.xpm + "" + "True" + "True" + "blue_key.xpm" + "1" + "" // blue_yellow_cardkey.xpm + "" + "True" + "True" + "blue_yellow_cardkey.xpm" + "1" + "" // blue_yellow_key.xpm + "" + "True" + "True" + "blue_yellow_key.xpm" + "1" + "" // brief.xpm - "" + "" "True" "False" "brief.xpm" "1" "" // clipboard "" "True" "False" "task-due" "1" "" // decrypt.xpm "" "True" "False" "decrypt.xpm" "1" "" // delete.xpm "" "True" "False" "delete.xpm" "1" "" // detailed.xpm "" "True" "False" "detailed.xpm" "1" "" // edit.xpm "" "True" "False" "edit.xpm" "1" "" // encrypt.xpm "" "True" "False" "encrypt.xpm" "1" "" // export.xpm "" "True" "False" "export.xpm" "1" "" // floppy.xpm // folder.xpm // gpa_blue_key.xpm + "" + "True" + "True" + "gpa_blue_key.xpm" + "1" + "" // gpa_logo.xpm "" // gpa_yellow_key.xpm + "" + // gpa_yellow_key.xpm + "" + "True" + "True" + "gpa_yellow_key.xpm" + "1" + "" // harddisk.xpm // help.xpm // import.xpm "" "True" "False" "import.xpm" "1" "" // keyring.xpm "" "True" "True" "keyring.xpm" "1" "" // keyringeditor.xpm "" "True" "True" "keyringeditor.xpm" "1" "" // open_folder.xpm // openfile.xpm // sign.xpm "" "True" "False" "sign.xpm" "1" "" // smartcard.xpm "" "True" "False" "/org/gnupg/gpa/smartcard.xpm" "1" "" // verify "" "True" "False" "/org/gnupg/gpa/verify.xpm" "1" "" // wizard_backup "" "True" "False" "/org/gnupg/gpa/wizard_backup.xpm" "1" "" // wizard_genkey "" "True" "False" "/org/gnupg/gpa/wizard_genkey.xpm" "1" "" ""; static void register_stock_icons (void) { GdkDisplay *display = gdk_display_get_default(); GdkScreen *screen = gdk_display_get_default_screen (display); g_application_set_resource_base_path (G_APPLICATION (get_gpa_application ()), "/org/gnupg/gpa"); //GtkIconTheme *icon_theme = gtk_icon_theme_new (); GtkIconTheme *icon_theme = gtk_icon_theme_get_for_screen (screen); GResource *resource = org_get_resource (); g_resources_register (resource); gtk_icon_theme_add_resource_path (icon_theme, "/org/gnupg/gpa"); } void gpa_register_stock_items (void) { register_stock_icons (); } diff --git a/src/org.gnupg.gpa.src.gresource.xml b/src/org.gnupg.gpa.src.gresource.xml index 7bc9b07..800f746 100644 --- a/src/org.gnupg.gpa.src.gresource.xml +++ b/src/org.gnupg.gpa.src.gresource.xml @@ -1,26 +1,31 @@ + blue_key.xpm + blue_yellow_cardkey.xpm + blue_yellow_key.xpm brief.xpm decrypt.xpm detailed.xpm delete.xpm edit.xpm encrypt.xpm export.xpm + gpa_blue_key.xpm gpa_logo.xpm + gpa_yellow_key.xpm import.xpm keyringeditor.xpm keyring.xpm sign.xpm smartcard.xpm verify.xpm wizard_backup.xpm wizard_genkey.xpm