Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Patch 1 #1

Open
wants to merge 132 commits into
base: master
Choose a base branch
from
Open
Changes from 1 commit
Commits
Show all changes
132 commits
Select commit Hold shift + click to select a range
5d50e52
Another option for front channel audio device added to volumealsa plu…
spl237 Jan 5, 2016
237d171
Ejecter plugin now less brutal about pulling unejected devices; some …
spl237 Feb 18, 2016
79f0b18
Flickering of activity indicator on IP6 ROUTERADVERT messages fixed.
spl237 Feb 25, 2016
b042ce6
Check for existence of prefs dialog in dhcp plugin before trying to c…
spl237 Feb 25, 2016
a56b782
Ejecter plugin changed to create menu immediately before display.
spl237 Mar 8, 2016
06eaaeb
Tidying to ejecter plugin code - function names made more accurate. M…
spl237 Mar 9, 2016
2a3af2e
Ejecter - drive name read as soon as it is detected for use in error …
spl237 Mar 9, 2016
4e65469
Robustness improvements in ejecter plugin.
spl237 Mar 10, 2016
ac5764a
Further robustness tweaks to ejecter plugin code.
spl237 Mar 10, 2016
3ad90fe
Popup behaviour corrected for calendar and volume plugins - no flicke…
spl237 Mar 10, 2016
83f0704
Update for URLs in weather plugin.
spl237 Mar 16, 2016
56df0ef
Bug preventing weather plugin config dialog from being closed fixed.
spl237 Mar 17, 2016
586c6bc
Very early version, but enough works that I don't want to risk losing…
spl237 Mar 31, 2016
c5d0692
Bluetooth pairing UI improved.
spl237 Apr 1, 2016
b9496eb
Pair and remove dialogs cleaned up.
spl237 Apr 1, 2016
1c3b44e
Highlight in device list persists when list is redrawn.
spl237 Apr 1, 2016
88541e9
Various robustness tweaks.
spl237 Apr 2, 2016
99f7a87
Fixed bug with text entry field in pairing dialog.
spl237 Apr 2, 2016
4251e2a
Debug macro used instead of printf.
spl237 Apr 2, 2016
3b5ffa0
Spurious widget removed from list dialog.
spl237 Apr 2, 2016
b988e76
Ignore devices which have no class. Only show separator if needed.
spl237 Apr 3, 2016
62675fa
Warn if no Bluetooth adapter found.
spl237 Apr 3, 2016
b624d88
Submenus added for paired devices; devices now referenced by path ins…
spl237 Apr 3, 2016
f6c34b8
Handling for disconnection of adapters etc added.
spl237 Apr 3, 2016
70fe56b
Progress dialogs for connect, disconnect and remove added.
spl237 Apr 4, 2016
d0e45bd
Bluetooth icon added.
spl237 Apr 4, 2016
b082bcb
Icons fixed.
spl237 Apr 4, 2016
c3e17ac
Dialog added while waiting for response; some memory leaks fixed.
spl237 Apr 4, 2016
428b23e
Connection status icons updated.
spl237 Apr 4, 2016
7596c2f
Bluetooth connection icons added.
spl237 Apr 4, 2016
a1cadff
Menu locked out while dialogs are open, and refreshes if displayed.
spl237 Apr 4, 2016
72002d6
Authorization dialog now uses same widgets as pairing process dialog.
spl237 Apr 4, 2016
f142b44
Flashing icon for discoverable added.
spl237 Apr 5, 2016
392962b
Detection and handling of incoming pairings added.
spl237 Apr 5, 2016
c5048e6
Makefiles updated for new plugin.
spl237 Apr 5, 2016
76b3a2e
Delete event handlers added for dialogs.
spl237 Apr 5, 2016
98c3061
Deleting pairing window now cancels pairing if possible.
spl237 Apr 5, 2016
ee80776
First version of Bluetooth-aware volumealsa plugin - mostly works...
spl237 Apr 8, 2016
5afd1a1
Do not attempt to autoconnect audio cards.
spl237 Apr 11, 2016
90d5e83
Audio output device stored over reboot; trying to detect BT device di…
spl237 Apr 11, 2016
acfc68f
Resubscribing to signals whenever reconnected to PulseAudio.
spl237 Apr 11, 2016
c77fc98
Do not assume sink numbers are single digits...
spl237 Apr 12, 2016
600e266
Filter signals from PulseAudio to SinkRemoved only.
spl237 Apr 12, 2016
a1ecd37
Stopping and starting PA server tidied.
spl237 Apr 12, 2016
009b66c
Added warning dialog on connection failure; mapping functions simplif…
spl237 Apr 12, 2016
d2119d3
Force trusting when connecting audio devices, just in case...
spl237 Apr 12, 2016
ad5906c
Memory leakage contained in new plugins.
spl237 Apr 12, 2016
c38749a
Gettext markup added.
spl237 Apr 13, 2016
aeb7f74
Menu item activation fixed on volumealsa plugin.
spl237 Apr 13, 2016
6c0daa9
Check that object manager is providing an interface before connecting.
spl237 Apr 13, 2016
db654a8
Memory leaks in startup and shutdown fixed.
spl237 Apr 13, 2016
0197b7c
Reuse sink number as flag for BT used.
spl237 Apr 13, 2016
566d84a
Dialog boxes not forced to stay in centre when resized.
spl237 Apr 13, 2016
afc58d7
Robustness tweaks; segfault fixed.
spl237 Apr 13, 2016
1f14a2d
Watch BlueZ bus in case it vanishes underneath us.
spl237 Apr 13, 2016
d58786c
English translations and template updated.
spl237 Apr 13, 2016
89def45
Retain highlight in remove device list.
spl237 Apr 14, 2016
8781c27
Validate existence of variants before unref'ing.
spl237 Apr 14, 2016
1e76124
Try to force message dialogs to finish drawing before callbacks occur.
spl237 Apr 14, 2016
58631b8
Distinguish between paired and unpaired lists when preserving highlight.
spl237 Apr 14, 2016
87a7d66
Missing accelerator in volumealsa dialog added.
spl237 Apr 14, 2016
cc94b76
Add tooltip with Bluetooth path to list dialogs.
spl237 Apr 14, 2016
16dd052
Handling of change to configuration by third-party app added.
spl237 Apr 14, 2016
e434ca1
Makefiles removed.
spl237 Apr 14, 2016
050a2eb
.gitignore updated.
spl237 Apr 14, 2016
c93e60a
Load DBus module into PulseAudio from command line to save editing co…
spl237 Apr 14, 2016
03a4f6d
Connection dialog added while BT audio device is connecting.
spl237 Apr 15, 2016
1e25079
Check for modified config files on startup and modify them if needed.
spl237 Apr 15, 2016
3f03dbc
Updated po file.
spl237 Apr 15, 2016
98f2d92
UUIDs checked for usable services.
spl237 Apr 15, 2016
834f3de
Spurious gtk_misc_set_alignments removed.
spl237 Apr 17, 2016
c39f31f
Dialog icons now pulled from same path as taskbar icon.
spl237 Apr 18, 2016
742cf73
Disable audio device menu while connecting BT device.
spl237 Apr 20, 2016
1b8af67
Disable audio device menu while connecting BT device.
spl237 Apr 20, 2016
3c9f96c
Only compare start of ALSA output channel strings.
spl237 Apr 22, 2016
c6ce08a
Mods to volumealsa plugin to deal with the case where the internal au…
spl237 Apr 22, 2016
524b92d
Make audio controls insensitive if there is no valid device.
spl237 Apr 22, 2016
4f54a62
Translations updated.
spl237 Apr 22, 2016
c316057
Corrected string in volumealsa menu.
spl237 Apr 24, 2016
51250de
Volumealsa window changed to popup type.
spl237 Apr 26, 2016
e00ce7c
Various memory leaks and handles being retained fixed in volumealsa p…
spl237 Apr 29, 2016
a6527b9
alsastart and alsastop parameters added to lxpanelctl.
spl237 Apr 29, 2016
93b3c74
lxpanelctl help text updated.
spl237 May 3, 2016
fe26f1c
Icon updated and menu locked out while ALSA stopped.
spl237 May 3, 2016
d6a26f4
Check that there is a valid BT object manager before trying to use it.
spl237 May 15, 2016
5de3224
g_message used for logging in ALSA plugin
spl237 May 16, 2016
26961dc
Ejecter plugin modified to use phoney tooltip for warnings.
spl237 May 18, 2016
26de82a
Plugin debug all moved to g_message; unnecessary newlines removed.
spl237 May 18, 2016
6a22128
Prefixes added to plugin debug strings
spl237 May 19, 2016
702edef
po/Makefile.in removed.
spl237 May 19, 2016
fa99316
pclose added to volumealsa plugin.
spl237 May 27, 2016
3aceb04
Plugin code modified to use common tray icon code, which properly res…
spl237 Jun 21, 2016
a818668
Experimental code for new menu button added - currently disabled.
spl237 Jun 21, 2016
aa48901
Added ability to disconnect from wifi networks.
spl237 Jun 27, 2016
0a11723
Added rfkill switches in bluetooth and wifi menus.
spl237 Jun 29, 2016
1647907
Query Bluetooth power state multiple times when new device detected.
spl237 Jun 30, 2016
3e080e2
Icon added to BT dialog.
spl237 Jul 1, 2016
4136ac0
Confirmation dialog box added for wifi disconnect.
spl237 Jul 1, 2016
5759e74
Translation files updated.
spl237 Jul 11, 2016
5421c6a
Change fallback icon behaviour to always use fallback theme rather th…
spl237 Jul 14, 2016
3cb61a2
Non-square icons displayed correctly in menu plugin.
spl237 Jul 25, 2016
b5e7168
Merged dhcpcd-ui code from 15/02/16 with plugin to support dhcpcd 6.9.4
spl237 May 17, 2016
ab7211d
Extra line added at end of file to prevent resulting patch file being…
spl237 Aug 9, 2016
19a5d29
Fix for network offline icon not being shown when LAN disconnected.
spl237 Aug 10, 2016
2328050
Tick icon in volumealsa plugin resized if necessary.
spl237 Aug 11, 2016
7671d88
Ejecter plugin resizes eject icon correctly; note that icon theme sti…
spl237 Aug 11, 2016
58ffa61
dhcpcd bug fix merged from Roy's repo.
spl237 Aug 15, 2016
072b5bd
Fix crash when clicking between launchbar buttons; increase lateral i…
spl237 Aug 18, 2016
d22e441
Security status icon in dhcpcd plugin shows error if unrecognised sec…
spl237 Aug 30, 2016
93206d8
Tooltip added to application launch menu button.
spl237 Aug 31, 2016
18acc32
Tooltip text for menu button changed.
spl237 Sep 5, 2016
2d049bc
Force important menu icons to be shown irrespective of GTK xsettings.
spl237 Sep 6, 2016
044660c
Fix alpha for ejecter tooltip.
spl237 Sep 15, 2016
400e8b2
Makefiles amended to match those created by dpkg.
spl237 Sep 16, 2016
e58fae3
Removed changes to Makefile.in - problem seems to be elsewhere in dpk…
spl237 Sep 16, 2016
0bfdd1b
Fix crash when menu shows desktop file with no icon defined.
spl237 Sep 29, 2016
a347c17
Remove icon fallback modification - not needed now icon theme is comp…
spl237 Oct 1, 2016
af62ca8
Display name of dhcpcd plugin changed.
spl237 Oct 18, 2016
b8f22cd
Launchbar checks for existence of applications and hides icons if not…
spl237 Oct 18, 2016
c55c8aa
Merge branch 'master' of github.com:raspberrypi/lxpanel
spl237 Oct 18, 2016
b369fb1
Header file included to fix warning.
spl237 Oct 18, 2016
89f867e
Fix for bug in launchtaskbar detection of bad desktop files.
spl237 Oct 20, 2016
ea29a8a
Absolute paths defined for rfkill in all instances.
spl237 Oct 21, 2016
f13729d
Fix bug where switching off Bluetooth prevents subsequent detection o…
spl237 Oct 23, 2016
008f596
Out-of-bounds array access fixed in CPU plugin.
spl237 Jan 19, 2017
bbfb42c
Potential use of uninitialised variable in volumealsa plugin fixed.
spl237 Jan 19, 2017
be63c11
Force lxkeymap to reload when a BT keyboard connnects.
spl237 Feb 24, 2017
213db5c
Bluetooth keyboard map reload code tidied.
spl237 Feb 27, 2017
b247d8f
Fix crash when reconnecting to Bluetooth audio devices on boot.
spl237 Mar 2, 2017
d7a0390
Make volume control work on a linear scale.
spl237 Mar 28, 2017
82629da
Fix incorrect alpha on taskbar icons.
spl237 Apr 18, 2017
9dfc196
Create hy.po
Avag-Sayan May 2, 2020
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Update for URLs in weather plugin.
spl237 committed Mar 16, 2016
commit 83f07049d4c327fbde85a781da1e57774718fa1c
15 changes: 9 additions & 6 deletions plugins/weather/yahooutil.c
Original file line number Diff line number Diff line change
@@ -30,6 +30,7 @@
#include <libxml/xpath.h>
#include <libxml/xmlstring.h>
#include <libxml/uri.h>
#include <libxml/xpathInternals.h>

#include <gtk/gtk.h>
#include <gio/gio.h>
@@ -46,7 +47,7 @@

static gint g_iInitialized = 0;

static const gchar * WOEID_QUERY = "SELECT%20*%20FROM%20geo.placefinder%20WHERE%20text=";
static const gchar * WOEID_QUERY = "SELECT%20*%20FROM%20geo.places%20WHERE%20text=";
static const gchar * FORECAST_QUERY_P1 = "SELECT%20*%20FROM%20weather.forecast%20WHERE%20woeid=";
static const gchar * FORECAST_QUERY_P2 = "%20and%20u=";
static const gchar * FORECAST_URL = "http://query.yahooapis.com/v1/public/yql?format=xml&q=";
@@ -358,11 +359,11 @@ processResultNode(xmlNodePtr pNode)

gsize contentLength = ((pczContent)?strlen(pczContent):0); // 1 is null char

if (xmlStrEqual(pCurr->name, CONSTXMLCHAR_P("city")))
if (xmlStrEqual(pCurr->name, CONSTXMLCHAR_P("name")))
{
pEntry->pcCity_ = g_strndup(pczContent, contentLength);
}
else if (xmlStrEqual(pCurr->name, CONSTXMLCHAR_P("state")))
else if (xmlStrEqual(pCurr->name, CONSTXMLCHAR_P("admin1")))
{
pEntry->pcState_ = g_strndup(pczContent, contentLength);
}
@@ -374,7 +375,7 @@ processResultNode(xmlNodePtr pNode)
{
pEntry->pcWOEID_ = g_strndup(pczContent, contentLength);
}
else if (xmlStrEqual(pCurr->name, CONSTXMLCHAR_P("line2")))
else if (xmlStrEqual(pCurr->name, CONSTXMLCHAR_P("locality")))
{
pEntry->pcAlias_ = g_strndup(pczContent, contentLength);
}
@@ -789,7 +790,9 @@ parseResponse(gpointer pResponse, GList ** pList, gpointer * pForecast)

if (iLocation)
{
pczExpression = "/query/results/Result";
xmlXPathRegisterNs(pXCtxt, CONSTXMLCHAR_P("ns1"),
CONSTXMLCHAR_P("http://where.yahooapis.com/v1/schema.rng"));
pczExpression = "///ns1:place";
}

// have some results...
@@ -818,7 +821,7 @@ parseResponse(gpointer pResponse, GList ** pList, gpointer * pForecast)

if (pNode && pNode->type == XML_ELEMENT_NODE)
{
if (xmlStrEqual(pNode->name, CONSTXMLCHAR_P("Result")))
if (xmlStrEqual(pNode->name, CONSTXMLCHAR_P("place")))
{
gpointer pEntry = processResultNode(pNode);