Merge lp:~indicator-applet-developers/ubuntu/precise/indicator-session/upstream into lp:~ubuntu-desktop/indicator-session/ubuntu

Proposed by Charles Kerr
Status: Merged
Merged at revision: 194
Proposed branch: lp:~indicator-applet-developers/ubuntu/precise/indicator-session/upstream
Merge into: lp:~ubuntu-desktop/indicator-session/ubuntu
Diff against target: 135 lines (+42/-16)
6 files modified
ChangeLog (+24/-0)
configure (+1/-1)
configure.ac (+1/-1)
debian/changelog (+7/-0)
src/device-menu-mgr.c (+4/-3)
src/indicator-session.c (+5/-11)
To merge this branch: bzr merge lp:~indicator-applet-developers/ubuntu/precise/indicator-session/upstream
Reviewer Review Type Date Requested Status
Ken VanDine Pending
Review via email: mp+98688@code.launchpad.net

Description of the change

0.3.95

To post a comment you must log in.

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
=== modified file 'ChangeLog'
--- ChangeLog 2012-03-14 18:34:16 +0000
+++ ChangeLog 2012-03-21 17:33:21 +0000
@@ -1,5 +1,29 @@
1# Generated by Makefile. Do not edit.1# Generated by Makefile. Do not edit.
22
32012-03-21 Charles Kerr <charles.kerr@canonical.com>
4
5 0.3.95
6
72012-03-19 Charles Kerr <charles.kerr@canonical.com>
8
9 Merge lp:~charlesk/indicator-session/lp-957342 to fix a pair of indicator-session memory leaks.
10
112012-03-16 Charles Kerr <charles.kerr@canonical.com>
12
13 fix memory leak updating the username label -- gtk_label_set_text() takes a const char*, we don't need to g_strdup() the string before passing it in
14
152012-03-16 Charles Kerr <charles.kerr@canonical.com>
16
17 plug two more memory leaks. g_variant_get("s") makes a newly-allocated duplicated string, g_variant_get("&s") returns the internal const string.
18
192012-03-16 Charles Kerr <charles.kerr@canonical.com>
20
21 plug two leaked strings in keybinding_changed()
22
232012-03-16 Charles Kerr <charles.kerr@canonical.com>
24
25 to pull a const string from g_variant_get(), use a format string "&s", not "s"
26
32012-03-14 Charles Kerr <charles.kerr@canonical.com>272012-03-14 Charles Kerr <charles.kerr@canonical.com>
428
5 0.3.9429 0.3.94
630
=== modified file 'configure'
--- configure 2012-03-14 18:34:16 +0000
+++ configure 2012-03-21 17:33:21 +0000
@@ -2774,7 +2774,7 @@
27742774
2775# Define the identity of the package.2775# Define the identity of the package.
2776 PACKAGE=indicator-session2776 PACKAGE=indicator-session
2777 VERSION=0.3.942777 VERSION=0.3.95
27782778
27792779
2780cat >>confdefs.h <<_ACEOF2780cat >>confdefs.h <<_ACEOF
27812781
=== modified file 'configure.ac'
--- configure.ac 2012-03-14 18:38:20 +0000
+++ configure.ac 2012-03-21 17:33:21 +0000
@@ -4,7 +4,7 @@
4AC_PREREQ(2.53)4AC_PREREQ(2.53)
55
6AM_CONFIG_HEADER(config.h)6AM_CONFIG_HEADER(config.h)
7AM_INIT_AUTOMAKE(indicator-session, 0.3.94)7AM_INIT_AUTOMAKE(indicator-session, 0.3.95)
88
9AM_MAINTAINER_MODE9AM_MAINTAINER_MODE
1010
1111
=== modified file 'debian/changelog'
--- debian/changelog 2012-03-14 18:38:30 +0000
+++ debian/changelog 2012-03-21 17:33:21 +0000
@@ -1,3 +1,10 @@
1indicator-session (0.3.95-0ubuntu1~ppa1) precise; urgency=low
2
3 * New upstream release.
4 * Fix small memory leaks (lp: #957342)
5
6 -- Charles Kerr <charles.kerr@canonical.com> Wed, 21 Mar 2012 12:28:43 -0500
7
1indicator-session (0.3.94-0ubuntu1) precise; urgency=low8indicator-session (0.3.94-0ubuntu1) precise; urgency=low
29
3 * New upstream release.10 * New upstream release.
411
=== removed directory 'debian/patches'
=== modified file 'src/device-menu-mgr.c'
--- src/device-menu-mgr.c 2012-02-23 14:40:17 +0000
+++ src/device-menu-mgr.c 2012-03-21 17:33:21 +0000
@@ -166,11 +166,12 @@
166 }166 }
167167
168 if (g_strcmp0 (key, KEY_LOCK_SCREEN) == 0) {168 if (g_strcmp0 (key, KEY_LOCK_SCREEN) == 0) {
169 g_debug("Keybinding changed to: %s", g_settings_get_string(settings, key));169 gchar * val = g_settings_get_string(settings, key);
170 g_debug("Keybinding changed to: %s", val);
170 if (lock_menuitem != NULL) {171 if (lock_menuitem != NULL) {
171 dbusmenu_menuitem_property_set_shortcut_string (lock_menuitem,172 dbusmenu_menuitem_property_set_shortcut_string (lock_menuitem, val);
172 g_settings_get_string(settings, key));
173 }173 }
174 g_free (val);
174 }175 }
175 return;176 return;
176}177}
177178
=== modified file 'src/indicator-session.c'
--- src/indicator-session.c 2012-02-23 15:17:10 +0000
+++ src/indicator-session.c 2012-03-21 17:33:21 +0000
@@ -428,7 +428,7 @@
428 }428 }
429 429
430 const gchar* username = NULL;430 const gchar* username = NULL;
431 g_variant_get (result, "(s)", &username);431 g_variant_get (result, "(&s)", &username);
432 indicator_session_update_users_label (self, username);432 indicator_session_update_users_label (self, username);
433 return;433 return;
434}434}
@@ -481,7 +481,7 @@
481481
482 if (g_strcmp0(signal_name, "UserRealNameUpdated") == 0) {482 if (g_strcmp0(signal_name, "UserRealNameUpdated") == 0) {
483 const gchar* username = NULL;483 const gchar* username = NULL;
484 g_variant_get (parameters, "(s)", &username);484 g_variant_get (parameters, "(&s)", &username);
485 indicator_session_update_users_label (self, username); 485 indicator_session_update_users_label (self, username);
486 }486 }
487 else if (g_strcmp0(signal_name, "UserMenuIsVisible") == 0) {487 else if (g_strcmp0(signal_name, "UserMenuIsVisible") == 0) {
@@ -713,14 +713,8 @@
713 } 713 }
714714
715 GSettings* settings = g_settings_new ("com.canonical.indicator.session");715 GSettings* settings = g_settings_new ("com.canonical.indicator.session");
716 gboolean use_name = g_settings_get_boolean (settings,716 const gboolean use_name = g_settings_get_boolean (settings, "show-real-name-on-panel");
717 "show-real-name-on-panel"); 717 gtk_label_set_text (self->users.label, name);
718 gtk_widget_set_visible (GTK_WIDGET(self->users.label), use_name);
718 g_object_unref (settings);719 g_object_unref (settings);
719 gtk_label_set_text (self->users.label, g_strdup(name));
720 if (use_name){
721 gtk_widget_show(GTK_WIDGET(self->users.label));
722 }
723 else{
724 gtk_widget_hide(GTK_WIDGET(self->users.label));
725 }
726}720}

Subscribers

People subscribed via source and target branches