Skip to content

Commit

Permalink
Merge branch 'master' of github.com:klesh/fu
Browse files Browse the repository at this point in the history
  • Loading branch information
klesh committed Apr 19, 2017
2 parents 2cf3717 + ba2dac8 commit 4f5cbde
Show file tree
Hide file tree
Showing 9 changed files with 24 additions and 25 deletions.
1 change: 1 addition & 0 deletions .gitignore
Expand Up @@ -371,3 +371,4 @@ config.status
INSTALL
COPYING
/fu-*
/fu/src/fu
20 changes: 1 addition & 19 deletions Makefile.am
@@ -1,20 +1,2 @@
export ICONS_PREFIX=$(datarootdir)/icons/hicolor/48x48/apps
SUBDIRS = fu

EXTRA_DIST = \
$(desktop_DATA) \
$(autostart_DATA) \
$(pixmaps_DATA)

gtk_update_icon_cache = gtk-update-icon-cache -f -t
install-data-hook: update-icon-cache
uninstall-hook: update-icon-cache


update-icon-cache:
@-if test -z "$(DESTDIR)"; then \
echo "Updating Gtk icon cache."; \
$(gtk_update_icon_cache) $(datadir)/icons/hicolor; \
else \
echo "*** Icon cache not updated. After (un)install, run these:"; \
echo "*** $(gtk_update_icon_cache) $(datadir)/icons/hicolor"; \
fi
1 change: 0 additions & 1 deletion configure.ac
Expand Up @@ -8,7 +8,6 @@ AC_CONFIG_SRCDIR([fu/src/main.cpp])
AM_CONFIG_HEADER([config.h])
AM_INIT_AUTOMAKE


# Checks for programs.
AC_PROG_CXX
AC_PROG_CC()
Expand Down
17 changes: 16 additions & 1 deletion fu/resources/Makefile.am
Expand Up @@ -6,7 +6,9 @@ autostartdir = $(sysconfdir)/xdg/autostart
#autostart_DATA = $(autostart_in_file:.desktop.in=.desktop)
autostart_DATA = fu_startup.desktop

pixmapsdir = $(datarootdir)/icons/hicolor/48x48/apps
#pixmapsdir = $(datarootdir)/icons/hicolor/48x48/apps
pixmapsdir = $(ICONS_PREFIX)

pixmaps_DATA = fu.png fu_uploading.png

EXTRA_DIST = \
Expand All @@ -21,3 +23,16 @@ CLEANFILES = \
DISTCLEANFILES = \
$(desktop_DATA) \
$(autostart_DATA)

gtk_update_icon_cache = gtk-update-icon-cache -f -t
install-data-hook: update-icon-cache
uninstall-hook: update-icon-cache

update-icon-cache:
@-if test -z "$(DESTDIR)"; then \
echo "Updating Gtk icon cache."; \
$(gtk_update_icon_cache) $(ICONS_PREFIX); \
else \
echo "*** Icon cache not updated. After (un)install, run these:"; \
echo "*** $(gtk_update_icon_cache) $(ICONS_PREFIX)"; \
fi
2 changes: 2 additions & 0 deletions fu/src/Makefile.am
Expand Up @@ -9,5 +9,7 @@ fu_LDADD = core/libcore.a \
protocols/libprotocols.a \
ui/libui.a
fu_SOURCES = main.cpp
fu_CPPFLAGS = -DICONS_PREFIX=\"$(ICONS_PREFIX)\"

#at_LDADD = $(LIBOBJS)

1 change: 0 additions & 1 deletion fu/src/core/config.cpp
Expand Up @@ -34,7 +34,6 @@ class Config

Config()
{
wxFileName exec =
_executeDir = wxFileName( wxStandardPaths::Get().GetExecutablePath() ).GetPath();

wxString folder = wxStandardPaths::Get().GetUserDataDir();
Expand Down
Binary file removed fu/src/fu
Binary file not shown.
1 change: 1 addition & 0 deletions fu/src/ui/Makefile.am
Expand Up @@ -6,3 +6,4 @@ libui_a_SOURCES = browseform.cpp \
sitespanel.cpp \
sizerhelper.cpp \
tray.cpp
libui_a_CPPFLAGS = -DICONS_PREFIX=\"$(ICONS_PREFIX)\"
6 changes: 3 additions & 3 deletions fu/src/ui/tray.cpp
@@ -1,7 +1,6 @@
#ifndef UI_TRAY
#define UI_TRAY


#include <wx/wx.h>
#include <wx/icon.h>
#include <wx/taskbar.h>
Expand Down Expand Up @@ -111,8 +110,9 @@ class Tray : public wxTaskBarIcon
Bind(wxEVT_UPDATE_UI, &Tray::OnUpdateMenu, this);
#else
#ifdef __WXGTK__
_iconPath = "icon.png";
_iconUploadingPath = "icon_uploading.png";
_iconPath = wxString(ICONS_PREFIX) + "/fu.png";
_iconUploadingPath = wxString(ICONS_PREFIX) + "/fu_uploading.png";
wxLogDebug(_iconPath);
#else
_iconPath = TheConfig.GetIconPath("16x16", "icon.png");
_iconUploadingPath = TheConfig.GetIconPath("16x16", "icon_uploading.png");
Expand Down

0 comments on commit 4f5cbde

Please sign in to comment.