add gmrun.desktop / gmrun.png

This commit is contained in:
wdlkmpx 2020-09-08 13:13:51 +08:00
parent 4615a8701c
commit 42860f123a
7 changed files with 22 additions and 23 deletions

View File

@ -1,5 +1,7 @@
Initial author: Mihai Bazon <mishoo@infoiasi.ro>
Icon: Andrea Soragna - https://icon-icons.com/icon/gtk-execute/36132
CVS:
----

View File

@ -1,30 +1,9 @@
## Process this file with automake to produce Makefile.in
ACLOCAL_AMFLAGS = -I m4
SUBDIRS = src
SUBDIRS = data src
myrcdir = @sysconfdir@
myrc_DATA = gmrunrc
EXTRA_DIST = gmrunrc
install-data-local:
@$(NORMAL_INSTALL)
if test -d $(srcdir)/pixmaps; then \
$(SHELL) $(top_srcdir)/install-sh -d $(DESTDIR)$(pkgdatadir)/pixmaps; \
for pixmap in $(srcdir)/pixmaps/*; do \
if test -f $$pixmap; then \
$(INSTALL_DATA) $$pixmap $(DESTDIR)$(pkgdatadir)/pixmaps; \
fi \
done \
fi
dist-hook:
if test -d pixmaps; then \
mkdir $(distdir)/pixmaps; \
for pixmap in pixmaps/*; do \
if test -f $$pixmap; then \
cp -p $$pixmap $(distdir)/pixmaps; \
fi \
done \
fi

View File

@ -56,6 +56,7 @@ AC_SUBST(PREFIX)
AC_OUTPUT([
Makefile
data/Makefile
src/Makefile
])

8
data/Makefile.am Normal file
View File

@ -0,0 +1,8 @@
## Process this file with automake to produce Makefile.in
appdir = $(datadir)/applications
app_DATA = gmrun.desktop
icondir = $(datadir)/pixmaps
icon_DATA = gmrun.png

9
data/gmrun.desktop Normal file
View File

@ -0,0 +1,9 @@
[Desktop Entry]
Name=gmrun
Icon=gmrun.png
Comment=execute a command
Exec=gmrun
Terminal=false
Type=Application
Categories=TerminalEmulator
GenericName=gmrun

BIN
data/gmrun.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.9 KiB

View File

@ -551,7 +551,7 @@ int main(int argc, char **argv)
// window icon
GtkIconTheme * theme = gtk_icon_theme_get_default ();
GdkPixbuf * icon = gtk_icon_theme_load_icon (theme, "system-run", 48, GTK_ICON_LOOKUP_USE_BUILTIN, &error);
GdkPixbuf * icon = gtk_icon_theme_load_icon (theme, "gmrun", 48, GTK_ICON_LOOKUP_USE_BUILTIN, &error);
if (error) {
g_object_set (dialog, "icon-name", "gtk-execute", NULL);
g_error_free (error);