Kaydet (Commit) c832aae7 authored tarafından Markus Mohrhard's avatar Markus Mohrhard

updater: get the updater GUI working on Linux

Change-Id: I3e7edb5319ab2e2ec316204b917a7e29c1791b5b
üst ca089c7e
...@@ -57,9 +57,8 @@ $(eval $(call gb_Helper_register_executables,NONE, \ ...@@ -57,9 +57,8 @@ $(eval $(call gb_Helper_register_executables,NONE, \
svg2odf \ svg2odf \
svidl \ svidl \
$(if $(ENABLE_ONLINE_UPDATE_MAR),\ $(if $(ENABLE_ONLINE_UPDATE_MAR),\
$(if $(filter WNT,$(OS)), \ test_updater_dialog \
test_updater_dialog \ ) \
)) \
treex \ treex \
ulfex \ ulfex \
unoidl-read \ unoidl-read \
......
...@@ -80,7 +80,6 @@ $(eval $(call gb_Executable_add_exception_objects,updater,\ ...@@ -80,7 +80,6 @@ $(eval $(call gb_Executable_add_exception_objects,updater,\
onlineupdate/source/update/updater/archivereader \ onlineupdate/source/update/updater/archivereader \
onlineupdate/source/update/updater/bspatch \ onlineupdate/source/update/updater/bspatch \
onlineupdate/source/update/updater/progressui_gtk \ onlineupdate/source/update/updater/progressui_gtk \
onlineupdate/source/update/updater/progressui_null \
onlineupdate/source/update/updater/updater \ onlineupdate/source/update/updater/updater \
$(if $(filter WNT,$(OS)),\ $(if $(filter WNT,$(OS)),\
onlineupdate/source/update/updater/loaddlls \ onlineupdate/source/update/updater/loaddlls \
......
...@@ -17,8 +17,8 @@ $(eval $(call gb_Module_add_targets,onlineupdate,\ ...@@ -17,8 +17,8 @@ $(eval $(call gb_Module_add_targets,onlineupdate,\
StaticLibrary_updatehelper \ StaticLibrary_updatehelper \
$(if $(filter WNT,$(OS)),\ $(if $(filter WNT,$(OS)),\
Executable_update_service \ Executable_update_service \
Executable_test_updater_dialog \
WinResTarget_updater )\ WinResTarget_updater )\
Executable_test_updater_dialog \
Executable_mar \ Executable_mar \
Executable_updater \ Executable_updater \
Executable_mbsdiff \ Executable_mbsdiff \
......
...@@ -11,6 +11,7 @@ ...@@ -11,6 +11,7 @@
#include "progressui.h" #include "progressui.h"
#include "readstrings.h" #include "readstrings.h"
#include "errors.h" #include "errors.h"
#include <string.h>
#define TIMER_INTERVAL 100 #define TIMER_INTERVAL 100
...@@ -76,7 +77,10 @@ ShowProgressUI() ...@@ -76,7 +77,10 @@ ShowProgressUI()
StringTable strings; StringTable strings;
if (ReadStrings(ini_path, &strings) != OK) if (ReadStrings(ini_path, &strings) != OK)
return -1; {
strcpy(strings.title, "LibreOffice Updater");
strcpy(strings.info, "This program is updating your LibreOffice installation.");
}
sWin = gtk_window_new(GTK_WINDOW_TOPLEVEL); sWin = gtk_window_new(GTK_WINDOW_TOPLEVEL);
if (!sWin) if (!sWin)
......
#include "progressui.h" #include "progressui.h"
#if defined(_WIN32)
#include "progressui_win.cxx" #include "progressui_win.cxx"
#else
#include "progressui_gtk.cxx"
#endif
#include <thread> #include <thread>
#include <chrono> #include <chrono>
...@@ -15,7 +20,7 @@ void func() ...@@ -15,7 +20,7 @@ void func()
QuitProgressUI(); QuitProgressUI();
} }
int wmain(int argc, wchar_t** argv) int NS_main(int argc, NS_tchar** argv)
{ {
InitProgressUI(&argc, &argv); InitProgressUI(&argc, &argv);
std::thread a(func); std::thread a(func);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment