<?xml version="1.0" encoding="utf-8"?>
<?xml-stylesheet type="text/xsl" href="../assets/xml/rss.xsl" media="all"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Knowledge Base (Posts about gui)</title><link>https://bgstack15.ddns.net/blog/</link><description></description><atom:link href="https://bgstack15.ddns.net/blog/categories/gui.xml" rel="self" type="application/rss+xml"></atom:link><language>en</language><copyright>Contents © 2022 &lt;a href="mailto:bgstack15@gmail.com"&gt;bgstack15&lt;/a&gt; 
&lt;a rel="license" href="https://creativecommons.org/licenses/by-sa/4.0/"&gt;
&lt;img alt="Creative Commons License BY-SA"
style="border-width:0; margin-bottom:12px;"
src="https://bgstack15.ddns.net/.images/l_by-sa_4.0_88x31.png"&gt;&lt;/a&gt;</copyright><lastBuildDate>Sun, 27 Feb 2022 04:05:10 GMT</lastBuildDate><generator>Nikola (getnikola.com)</generator><docs>http://blogs.law.harvard.edu/tech/rss</docs><item><title>Gedit then and now</title><link>https://bgstack15.ddns.net/blog/posts/2019/05/09/gedit-then-and-now/</link><dc:creator>bgstack15</dc:creator><description>&lt;p&gt;This is a rant post, and not a how-to. Gedit is a simple text editor for the
GNOME stack. I remember reading somewhere about the old and new gedit
interfaces. The GNOME team has this plan to reduce and hide functionality, and
gedit shows some of the changes. Gedit used to have a toolbar, and the regular
titlebar and menus. &lt;img alt="Gedit
2" src="https://bgstack15.ddns.net/blog/2019/04/gedit2261.png"&gt; But Gedit
after GNOME has changed their thinking has hidden its functions. &lt;img alt="Gedit
3" src="https://bgstack15.ddns.net/blog/2019/04/gedit_3.11.92.png"&gt; I don't
really use gedit, because my text editing is more console driven, or else I
use scite.&lt;/p&gt;
&lt;h2&gt;Backtracking my activities for the references&lt;/h2&gt;
&lt;p&gt;Web search &lt;a href="https://duckduckgo.com/?q=gedit+then+and+now"&gt;gedit then and now&lt;/a&gt;
which led to Slashdot comment
&lt;a href="https://tech.slashdot.org/comments.pl?sid=10954105&amp;amp;cid=54946443"&gt;#54946443&lt;/a&gt;
on article &lt;a href="https://tech.slashdot.org/story/17/08/05/025227/gnomes-text-editor-gedit-no-longer-maintained-needs-new-developers"&gt;GNOME's Text Editor gedit 'No Longer Maintained', Needs New
Developers&lt;/a&gt; which quotes Slashdot
comment
&lt;a href="https://ask.slashdot.org/comments.pl?sid=6261117&amp;amp;cid=48503821"&gt;#48503821&lt;/a&gt; on
article &lt;a href="https://ask.slashdot.org/story/14/12/02/007206/ask-slashdot-non-coders-why-arent-you-contributing-to-open-source"&gt;Ask Slashdot: Non-Coders, Why Aren't You Contributing To Open
Source?&lt;/a&gt; which includes links to two
images
&lt;a href="https://upload.wikimedia.org/wikipedia/commons/e/ef/Gedit_3.11.92.png"&gt;Gedit_3.11.92.png&lt;/a&gt;
[wikipedia.org]
&lt;a href="https://upload.wikimedia.org/wikipedia/commons/d/df/Gedit2261.png"&gt;Gedit2261.png&lt;/a&gt;
[wikipedia.org]&lt;/p&gt;</description><category>gedit</category><category>gui</category><category>history</category><guid>https://bgstack15.ddns.net/blog/posts/2019/05/09/gedit-then-and-now/</guid><pubDate>Thu, 09 May 2019 12:50:55 GMT</pubDate></item><item><title>Compiling FreeFileSync on Fedora</title><link>https://bgstack15.ddns.net/blog/posts/2017/11/09/compiling-freefilesync-on-fedora/</link><dc:creator>bgstack15</dc:creator><description>&lt;p&gt;FreeFileSync is a great open source GUI application. Think of it as the GUI
for rsync. The Freefilesync team does not provide an rpm of the software, but
they do provide the &lt;a href="https://www.freefilesync.org/download/FreeFileSync_9.4_Source.zip"&gt;source
code&lt;/a&gt;. Now,
the team does not allow direct linking, so that link has a HMTL5
&lt;strong&gt;rel="noreferrer"&lt;/strong&gt; which might make it work for you.&lt;/p&gt;
&lt;h6&gt;Update:&lt;/h6&gt;
&lt;p&gt;I finally got a scriptlet to work with download the source code! Use this:&lt;/p&gt;
&lt;pre class="code literal-block"&gt;&lt;span&gt;&lt;/span&gt;&lt;code&gt;&lt;span class="n"&gt;wget&lt;/span&gt; &lt;span class="o"&gt;--&lt;/span&gt;&lt;span class="n"&gt;referer&lt;/span&gt; &lt;span class="s2"&gt;"https://www.freefilesync.org/download/FreeFileSync_9.4_Source.zip"&lt;/span&gt; &lt;span class="o"&gt;--&lt;/span&gt;&lt;span class="n"&gt;user&lt;/span&gt;&lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="n"&gt;agent&lt;/span&gt; &lt;span class="s2"&gt;"Mozilla/5.0 (X11; Fedora; Linux x86_64; rv:58.0) Gecko/20100101 Firefox/58.0"&lt;/span&gt; &lt;span class="n"&gt;https&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="o"&gt;//&lt;/span&gt;&lt;span class="n"&gt;www&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="n"&gt;freefilesync&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="n"&gt;org&lt;/span&gt;&lt;span class="o"&gt;/&lt;/span&gt;&lt;span class="n"&gt;download&lt;/span&gt;&lt;span class="o"&gt;/&lt;/span&gt;&lt;span class="n"&gt;FreeFileSync_9&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="mi"&gt;4&lt;/span&gt;&lt;span class="n"&gt;_Source&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="n"&gt;zip&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;So, once you open up the zip file of the source code, you need to modify a few
things. Please examine the patch I wrote:&lt;/p&gt;
&lt;pre class="code literal-block"&gt;&lt;span&gt;&lt;/span&gt;&lt;code&gt;&lt;span class="gh"&gt;diff -Naur FreeFileSync/Source/Makefile FreeFileSync.fc25/Source/Makefile&lt;/span&gt;
&lt;span class="gd"&gt;--- FreeFileSync/Source/Makefile    2017-10-05 09:54:58.000000000 -0400&lt;/span&gt;
&lt;span class="gi"&gt;+++ FreeFileSync.fc25/Source/Makefile   2017-10-22 21:33:01.445470939 -0400&lt;/span&gt;
&lt;span class="gu"&gt;@@ -10,8 +10,8 @@&lt;/span&gt;
 LINKFLAGS = -s `wx-config --libs std, aui --debug=no` -lboost_thread -lboost_chrono -lboost_system -lz -pthread

 #Gtk - support recycler/icon loading/no button border/grid scrolling
&lt;span class="gd"&gt;-CXXFLAGS  += `pkg-config --cflags gtk+-2.0`&lt;/span&gt;
&lt;span class="gd"&gt;-LINKFLAGS += `pkg-config --libs   gtk+-2.0`&lt;/span&gt;
&lt;span class="gi"&gt;+CXXFLAGS  += `pkg-config --cflags gtk+-3.0`&lt;/span&gt;
&lt;span class="gi"&gt;+LINKFLAGS += `pkg-config --libs   gtk+-3.0`&lt;/span&gt;

 #support for SELinux (optional)
 SELINUX_EXISTING=$(shell pkg-config --exists libselinux &amp;amp;&amp;amp; echo YES)
&lt;span class="gh"&gt;diff -Naur FreeFileSync/Source/RealTimeSync/Makefile FreeFileSync.fc25/Source/RealTimeSync/Makefile&lt;/span&gt;
&lt;span class="gd"&gt;--- FreeFileSync/Source/RealTimeSync/Makefile   2017-10-05 09:54:58.000000000 -0400&lt;/span&gt;
&lt;span class="gi"&gt;+++ FreeFileSync.fc25/Source/RealTimeSync/Makefile  2017-10-22 21:33:19.853796285 -0400&lt;/span&gt;
&lt;span class="gu"&gt;@@ -7,8 +7,8 @@&lt;/span&gt;
 LINKFLAGS = -s `wx-config --libs std, aui --debug=no` -lboost_thread -lboost_chrono -lboost_system -lz -pthread

 #Gtk - support "no button border"
&lt;span class="gd"&gt;-CXXFLAGS  += `pkg-config --cflags gtk+-2.0`&lt;/span&gt;
&lt;span class="gd"&gt;-LINKFLAGS += `pkg-config --libs   gtk+-2.0`&lt;/span&gt;
&lt;span class="gi"&gt;+CXXFLAGS  += `pkg-config --cflags gtk+-3.0`&lt;/span&gt;
&lt;span class="gi"&gt;+LINKFLAGS += `pkg-config --libs   gtk+-3.0`&lt;/span&gt;

 CPP_LIST=
 CPP_LIST+=application.cpp
&lt;span class="gh"&gt;diff -Naur FreeFileSync/Source/ui/main_dlg.cpp source.fc25/FreeFileSync/Source/ui/main_dlg.cpp&lt;/span&gt;
&lt;span class="gd"&gt;--- FreeFileSync/Source/ui/main_dlg.cpp 2017-10-05 09:54:58.000000000 -0400&lt;/span&gt;
&lt;span class="gi"&gt;+++ FreeFileSync.fc25/Source/ui/main_dlg.cpp    2017-10-22 21:33:01.446470957 -0400&lt;/span&gt;
&lt;span class="gu"&gt;@@ -1024,7 +1024,7 @@&lt;/span&gt;
         history.resize(globalSettings.gui.cfgFileHistMax);

     globalSettings.gui.cfgFileHistory = history;
&lt;span class="gd"&gt;-    globalSettings.gui.cfgFileHistFirstItemPos = m_listBoxHistory-&amp;gt;GetTopItem();&lt;/span&gt;
&lt;span class="gi"&gt;+    //globalSettings.gui.cfgFileHistFirstItemPos = m_listBoxHistory-gt;GetTopItem();&lt;/span&gt;
     //--------------------------------------------------------------------------------
     globalSettings.gui.lastUsedConfigFiles.clear();
     for (const Zstring&amp;amp; cfgFilePath : activeConfigFiles_)
&lt;span class="gu"&gt;@@ -4862,6 +4862,7 @@&lt;/span&gt;

     m_menuItemCheckVersionAuto-&amp;gt;Check(updateCheckActive(globalCfg_.gui.lastUpdateCheck));

&lt;span class="gi"&gt;+    /*&lt;/span&gt;
     if (shouldRunPeriodicUpdateCheck(globalCfg_.gui.lastUpdateCheck))
     {
         flashStatusInformation(_("Searching for program updates..."));
&lt;span class="gu"&gt;@@ -4869,6 +4870,7 @@&lt;/span&gt;
         periodicUpdateCheckEval(this, globalCfg_.gui.lastUpdateCheck, globalCfg_.gui.lastOnlineVersion,
                                 periodicUpdateCheckRunAsync(periodicUpdateCheckPrepare().get()).get());
     }
&lt;span class="gi"&gt;+    */&lt;/span&gt;
 }


&lt;span class="gu"&gt;@@ -4877,6 +4879,7 @@&lt;/span&gt;
     //execute just once per startup!
     Disconnect(wxEVT_IDLE, wxIdleEventHandler(MainDialog::OnRegularUpdateCheck), nullptr, this);

&lt;span class="gi"&gt;+    /*&lt;/span&gt;
     if (shouldRunPeriodicUpdateCheck(globalCfg_.gui.lastUpdateCheck))
     {
         flashStatusInformation(_("Searching for program updates..."));
&lt;span class="gu"&gt;@@ -4890,6 +4893,7 @@&lt;/span&gt;
                                     resultAsync.get()); //run on main thread:
         });
     }
&lt;span class="gi"&gt;+    */&lt;/span&gt;
 }
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;You will need a set of packages installed to compile:&lt;/p&gt;
&lt;pre class="code literal-block"&gt;&lt;span&gt;&lt;/span&gt;&lt;code&gt;dnf install -y boost-devel compat-wxGTK3-gtk2-devel gcc-c++ gtk+-devel gtk3-devel wxGTK-devel wxGTK3-devel
&lt;/code&gt;&lt;/pre&gt;</description><category>fedora</category><category>freefilesync</category><category>gui</category><category>linux</category><category>opensource</category><category>patch</category><guid>https://bgstack15.ddns.net/blog/posts/2017/11/09/compiling-freefilesync-on-fedora/</guid><pubDate>Thu, 09 Nov 2017 14:11:55 GMT</pubDate></item></channel></rss>