wok-6.x rev 19129

Leafpad: use generic icon (found in most icon themes)
author Aleksej Bobylev <al.bobylev@gmail.com>
date Fri May 13 03:36:37 2016 +0300 (2016-05-13)
parents 73e9a7d984fc
children b6a74775afd4
files leafpad/description.txt leafpad/receipt leafpad/stuff/icon.patch leafpad/stuff/leafpad.desktop
line diff
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/leafpad/description.txt	Fri May 13 03:36:37 2016 +0300
     1.3 @@ -0,0 +1,3 @@
     1.4 +Leafpad is a simple GTK+ based text editor with user interface similar to
     1.5 +Notepad. It aims to be lighter than Gedit and KWrite, and to be as useful as
     1.6 +them.
     2.1 --- a/leafpad/receipt	Thu May 12 00:24:45 2016 +0300
     2.2 +++ b/leafpad/receipt	Fri May 13 03:36:37 2016 +0300
     2.3 @@ -20,17 +20,14 @@
     2.4  compile_rules()
     2.5  {
     2.6  	chmod +x install-sh
     2.7 -	./configure \
     2.8 -		--disable-print \
     2.9 -		$CONFIGURE_ARGS &&
    2.10 -	make && make install
    2.11 +	patch -p1 -i $stuff/icon.patch
    2.12 +
    2.13 +	./configure $CONFIGURE_ARGS && make && make install
    2.14  }
    2.15  
    2.16  # Rules to gen a SliTaz package suitable for Tazpkg.
    2.17  genpkg_rules()
    2.18  {
    2.19 -	mkdir -p $fs/usr/share/icons/hicolor/48x48/apps
    2.20 +	mkdir -p $fs/usr
    2.21  	cp -a $install/usr/bin $fs/usr
    2.22 -	cp -a $install/usr/share/pixmaps/leafpad.png \
    2.23 -		$fs/usr/share/icons/hicolor/48x48/apps
    2.24  }
     3.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     3.2 +++ b/leafpad/stuff/icon.patch	Fri May 13 03:36:37 2016 +0300
     3.3 @@ -0,0 +1,39 @@
     3.4 +--- a/data/leafpad.desktop.in
     3.5 ++++ b/data/leafpad.desktop.in
     3.6 +@@ -1,10 +1,9 @@
     3.7 + [Desktop Entry]
     3.8 +-Encoding=UTF-8
     3.9 ++Type=Application
    3.10 + _Name=Leafpad
    3.11 + _Comment=Simple text editor
    3.12 ++Terminal=false
    3.13 + Exec=leafpad %f
    3.14 +-Icon=leafpad
    3.15 ++Icon=accessories-text-editor
    3.16 +-Terminal=false
    3.17 +-Type=Application
    3.18 +-MimeType=text/plain
    3.19 + Categories=GTK;Utility;TextEditor;
    3.20 ++MimeType=text/plain;
    3.21 +--- a/src/callback.c
    3.22 ++++ b/src/callback.c
    3.23 +@@ -336,7 +336,7 @@
    3.24 + 		"authors", authors,
    3.25 + 		"artists", artists,
    3.26 + 		"translator-credits", translator_credits,
    3.27 +-		"logo-icon-name", PACKAGE,
    3.28 ++		"logo-icon-name", "accessories-text-editor",
    3.29 + 		NULL);
    3.30 + #else
    3.31 + 	static GtkWidget *about = NULL;
    3.32 +--- a/src/window.c
    3.33 ++++ b/src/window.c
    3.34 +@@ -52,7 +52,7 @@
    3.35 + 	gtk_window_set_default_icon(icon);
    3.36 + */
    3.37 + #if GTK_CHECK_VERSION(2, 6, 0)
    3.38 +-	gtk_window_set_default_icon_name(PACKAGE);
    3.39 ++	gtk_window_set_default_icon_name("accessories-text-editor");
    3.40 + #else
    3.41 +  	GdkPixbuf *icon = gdk_pixbuf_new_from_file(
    3.42 + 		ICONDIR G_DIR_SEPARATOR_S PACKAGE ".png", NULL);
     4.1 --- a/leafpad/stuff/leafpad.desktop	Thu May 12 00:24:45 2016 +0300
     4.2 +++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
     4.3 @@ -1,12 +0,0 @@
     4.4 -[Desktop Entry]
     4.5 -Type=Application
     4.6 -Name=Leafpad Text editor
     4.7 -Name[fr]=Editeur de texte Leafpad
     4.8 -Name[pt]=Editor de Texto Leafpad
     4.9 -Name[pt_BR]=Editor de Texto Leafpad
    4.10 -Name[ru]=Текстовый редактор Leafpad
    4.11 -Name[zh_CN]=Leafpad文本编辑器
    4.12 -Exec=leafpad %f
    4.13 -Icon=accessories-text-editor
    4.14 -Categories=GTK;Utility;TextEditor;
    4.15 -MimeType=text/plain;