[telegnome] Don't reset current-channel on startup
- From: Colin Watson <cjwatson src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [telegnome] Don't reset current-channel on startup
- Date: Sun, 31 Jan 2016 02:37:49 +0000 (UTC)
commit 24423574d8e0387866b52c6983c1a2696be75628
Author: Colin Watson <cjwatson debian org>
Date: Sun Jan 31 02:35:55 2016 +0000
Don't reset current-channel on startup
* src/gui.c (tg_gui_reload_channels): Read current_uid from
gui->current_channel, not from the uuid property of
currentview->channel (which may not be set properly yet).
NEWS | 2 ++
src/gui.c | 3 +--
2 files changed, 3 insertions(+), 2 deletions(-)
---
diff --git a/NEWS b/NEWS
index c7b0f77..0914cce 100644
--- a/NEWS
+++ b/NEWS
@@ -1,6 +1,8 @@
Changes in TeleGNOME 0.2.1
==========================
+ * Don't reset current-channel to the first configured channel on startup.
+
Changes in TeleGNOME 0.2.0
==========================
diff --git a/src/gui.c b/src/gui.c
index fec1149..a87bb8b 100644
--- a/src/gui.c
+++ b/src/gui.c
@@ -231,8 +231,7 @@ tg_gui_reload_channels(void)
gui->channels = NULL;
}
- if (currentview->channel)
- g_object_get(currentview->channel, "uuid", ¤t_uuid, NULL);
+ current_uuid = g_strdup(gui->current_channel);
for (childp = gui->channel_children; childp && *childp; ++childp) {
channel = tg_channel_new(*childp, NULL);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]