# HG changeset patch # User Aleksej Bobylev # Date 1463099797 -10800 # Node ID f68aece3ada31a136c44765e37ee87513b3f5857 # Parent 73e9a7d984fca9d59c9e2e7b9dbdb7a7b63771fa Leafpad: use generic icon (found in most icon themes) diff -r 73e9a7d984fc -r f68aece3ada3 leafpad/description.txt --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/leafpad/description.txt Fri May 13 03:36:37 2016 +0300 @@ -0,0 +1,3 @@ +Leafpad is a simple GTK+ based text editor with user interface similar to +Notepad. It aims to be lighter than Gedit and KWrite, and to be as useful as +them. diff -r 73e9a7d984fc -r f68aece3ada3 leafpad/receipt --- a/leafpad/receipt Thu May 12 00:24:45 2016 +0300 +++ b/leafpad/receipt Fri May 13 03:36:37 2016 +0300 @@ -20,17 +20,14 @@ compile_rules() { chmod +x install-sh - ./configure \ - --disable-print \ - $CONFIGURE_ARGS && - make && make install + patch -p1 -i $stuff/icon.patch + + ./configure $CONFIGURE_ARGS && make && make install } # Rules to gen a SliTaz package suitable for Tazpkg. genpkg_rules() { - mkdir -p $fs/usr/share/icons/hicolor/48x48/apps + mkdir -p $fs/usr cp -a $install/usr/bin $fs/usr - cp -a $install/usr/share/pixmaps/leafpad.png \ - $fs/usr/share/icons/hicolor/48x48/apps } diff -r 73e9a7d984fc -r f68aece3ada3 leafpad/stuff/icon.patch --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/leafpad/stuff/icon.patch Fri May 13 03:36:37 2016 +0300 @@ -0,0 +1,39 @@ +--- a/data/leafpad.desktop.in ++++ b/data/leafpad.desktop.in +@@ -1,10 +1,9 @@ + [Desktop Entry] +-Encoding=UTF-8 ++Type=Application + _Name=Leafpad + _Comment=Simple text editor ++Terminal=false + Exec=leafpad %f +-Icon=leafpad ++Icon=accessories-text-editor +-Terminal=false +-Type=Application +-MimeType=text/plain + Categories=GTK;Utility;TextEditor; ++MimeType=text/plain; +--- a/src/callback.c ++++ b/src/callback.c +@@ -336,7 +336,7 @@ + "authors", authors, + "artists", artists, + "translator-credits", translator_credits, +- "logo-icon-name", PACKAGE, ++ "logo-icon-name", "accessories-text-editor", + NULL); + #else + static GtkWidget *about = NULL; +--- a/src/window.c ++++ b/src/window.c +@@ -52,7 +52,7 @@ + gtk_window_set_default_icon(icon); + */ + #if GTK_CHECK_VERSION(2, 6, 0) +- gtk_window_set_default_icon_name(PACKAGE); ++ gtk_window_set_default_icon_name("accessories-text-editor"); + #else + GdkPixbuf *icon = gdk_pixbuf_new_from_file( + ICONDIR G_DIR_SEPARATOR_S PACKAGE ".png", NULL); diff -r 73e9a7d984fc -r f68aece3ada3 leafpad/stuff/leafpad.desktop --- a/leafpad/stuff/leafpad.desktop Thu May 12 00:24:45 2016 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,12 +0,0 @@ -[Desktop Entry] -Type=Application -Name=Leafpad Text editor -Name[fr]=Editeur de texte Leafpad -Name[pt]=Editor de Texto Leafpad -Name[pt_BR]=Editor de Texto Leafpad -Name[ru]=Текстовый редактор Leafpad -Name[zh_CN]=Leafpad文本编辑器 -Exec=leafpad %f -Icon=accessories-text-editor -Categories=GTK;Utility;TextEditor; -MimeType=text/plain;