From 42860f123ae99582c5d5e615928d2fa05da2981a Mon Sep 17 00:00:00 2001 From: wdlkmpx Date: Tue, 8 Sep 2020 13:13:51 +0800 Subject: [PATCH] add gmrun.desktop / gmrun.png --- AUTHORS | 2 ++ Makefile.am | 23 +---------------------- configure.ac | 1 + data/Makefile.am | 8 ++++++++ data/gmrun.desktop | 9 +++++++++ data/gmrun.png | Bin 0 -> 1917 bytes src/main.cc | 2 +- 7 files changed, 22 insertions(+), 23 deletions(-) create mode 100644 data/Makefile.am create mode 100644 data/gmrun.desktop create mode 100644 data/gmrun.png diff --git a/AUTHORS b/AUTHORS index 355a750..d8e0dda 100644 --- a/AUTHORS +++ b/AUTHORS @@ -1,5 +1,7 @@ Initial author: Mihai Bazon +Icon: Andrea Soragna - https://icon-icons.com/icon/gtk-execute/36132 + CVS: ---- diff --git a/Makefile.am b/Makefile.am index 9c392b6..9e8ea8e 100644 --- a/Makefile.am +++ b/Makefile.am @@ -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 - diff --git a/configure.ac b/configure.ac index 1805d93..75afad7 100644 --- a/configure.ac +++ b/configure.ac @@ -56,6 +56,7 @@ AC_SUBST(PREFIX) AC_OUTPUT([ Makefile +data/Makefile src/Makefile ]) diff --git a/data/Makefile.am b/data/Makefile.am new file mode 100644 index 0000000..5518ca2 --- /dev/null +++ b/data/Makefile.am @@ -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 + diff --git a/data/gmrun.desktop b/data/gmrun.desktop new file mode 100644 index 0000000..38161f4 --- /dev/null +++ b/data/gmrun.desktop @@ -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 diff --git a/data/gmrun.png b/data/gmrun.png new file mode 100644 index 0000000000000000000000000000000000000000..28d64dddce630e8e0181e04d2b986eef2046f678 GIT binary patch literal 1917 zcmV-@2ZH#CP)96c-1drjdE?5(M246Qi(W|g+C+OpTo6<& zo3Ws(xc4olArGuV2CmXS_%$EkBZZk>D1xwn8Z#u#Ia9~i{0V`*t=6TlWB#QlW& za0g?o0pPa}A3hvd^;;6Kw6wJ8^ZEYk^ZAG%2#>1ZV}nwP+uK{Fs_MT!e*E}bcfXx= zTi=8603Zkgd_Er`glt;&TQw3w+~0%oEeL`DyI1-9v2s9+2^h5kqsEwkQ7bTNI7jhN z#uyl59c_dV5MmpbJsO^z0Mj&acXx++z24C-NfIU|Cg5~Ftx8Y&G)gHxfBuYEEQXDZ z4Y=KZZ_T={2w;3qTnfGkVkux)iQ53n^;_2L^K+08xH`YC?Xn-VsUX1&1UmK zIXuCA1u({->pJT7Iv8V+BnhG@f>Me`qXEC)Z#&oT_v6#2PauRq5QMfILP%Q3XmkJ9rnI|{~qt&y+bGz!poO0;qiDZ=dZ1;A(P3V(P(gs7KfHXDTQGe zsMqUQUthQN_O)6K+uPeXIXS`P+rV{&p5CnqP^-rh#7R1Am--gpsFfN(;UWx!CwK!81C-w5R1hSjYfNpJv%!?p-{l&(>B)Y&MJi{e5`7-hrLsz$>7&_it=$JUI6F__%M+-6G-m`1rxG zo12?M#{@(Bfd9|x>`*F|;B-3sCcx=*ws(kL5Jj;s9ed%2FNqCJKtFMLAP|6Qntd%* z#u!Y~L?960^6ZB&FafQ1_29tr%&`NjtE+v#t1aKMy1M${*n@+Ep`*fqcL72OCMG73 zPN$L2=i&GJ5s$|$|G9;Q1+1*Bpja&SOl4cfudJ-tMunwP32)!NMYUSR>FMcEI{+}` zE8uiGp(qM2E-p|k7Lm*4Y{%~I?qYg+8k(koQrfW^7-OK6Len%%Pfufach^=MSLmrO@uU@?xI2p?4 z^SHXY`Z|*#UDq)`KaWr-^x)Wqg@p%=wL&Nq!uLa9^=s;cr3X$e(TkxHewR)n~%08tcCsZ_AD zv(rI>rfE1jI#grBdnJJs4@B*U?zLUPmw(Z0Gacc=6%|ip3%%N#cGqW_K{c{cMmB0=L`U zUZyRD1wnw@?MAg)wVhk7R^fKL+tHmQN$qs|vF;8$S~_fX;lbf>;Pmtq*=)8Wlhbt_ z*=!c4r>FO7ijRG9;z{oZ2!a5w*NgrAeY|<|rlU`iBzV2vC%qd0jNpcd)9HlQ>%AB6 z|1ei%fYBLig>gx2)C!CmV**C4z^E}Mz^ai_s`EH_{8~UM1*O!ohTctpFgrW@%rJ~U zZf|ed_dr7HlNrM>{+OMeeTFWZyW;?fG3F_k%YRZzf4RQC{)rGGGsc`>CVm~8_rqWS zC?UjTjA^E6{$8n6{v?EWzVzL-26h|dQWV7_2!cltglB}1XM_;>%jYHnW9*wCfDpm} zP{vq;F{Uxb{-TurMJcVRs#*ikE?rp}L;#4-pFektqUhFjU1W?oL{a>v9Hy@8ln~Ms zMN!vvy>Weg-2kBD?-kHSKmRD{`u$eGx_-wP!vg;U;nW~2G8;mU00000NkvXXu0mjf Dxh;cY literal 0 HcmV?d00001 diff --git a/src/main.cc b/src/main.cc index 3d5ff81..88ddb44 100644 --- a/src/main.cc +++ b/src/main.cc @@ -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);