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

Proposed by Ted Gould
Status: Merged
Merged at revision: 167
Proposed branch: lp:~indicator-applet-developers/indicator-session/ubuntu
Merge into: lp:~ubuntu-desktop/indicator-session/ubuntu
Diff against target: 201 lines (+75/-13)
7 files modified
ChangeLog (+44/-0)
configure (+1/-1)
configure.ac (+1/-1)
debian/changelog (+9/-0)
src/apt-transaction.c (+0/-1)
src/apt-watcher.c (+2/-1)
src/settings-helper.c (+18/-9)
To merge this branch: bzr merge lp:~indicator-applet-developers/indicator-session/ubuntu
Reviewer Review Type Date Requested Status
Ken VanDine Pending
Review via email: mp+79325@code.launchpad.net

Description of the change

Some fixes.

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 2011-09-27 21:56:12 +0000
+++ ChangeLog 2011-10-13 18:23:36 +0000
@@ -1,5 +1,49 @@
1# Generated by Makefile. Do not edit.1# Generated by Makefile. Do not edit.
22
32011-10-13 Ted Gould <ted@gould.cx>
4
5 0.3.7
6
72011-10-12 Ted Gould <ted@gould.cx>
8
9 Fix variant handling
10
112011-10-09 Ted Gould <ted@gould.cx>
12
13 Attach bug
14
152011-10-09 Ted Gould <ted@gould.cx>
16
17 Don't unref the parameters as we don't make a ref to it
18
192011-10-09 Ted Gould <ted@gould.cx>
20
21 Make sure to reference the variant, and unref the value we get
22
232011-10-12 Ted Gould <ted@gould.cx>
24
25 Check to ensure we have settings, else default values.
26
272011-10-12 Ted Gould <ted@gould.cx>
28
29 Okay, get all of them I guess
30
312011-10-10 Ted Gould <ted@gould.cx>
32
33 Use a temporary variable to defeat G_DISABLE_CHECKS
34
352011-10-08 Ted Gould <ted@gould.cx>
36
37 Error gracefully if we can't get our settings.
38
392011-10-12 Ted Gould <ted@gould.cx>
40
41 Okay, fixing again. Now right.
42
432011-10-03 Ken VanDine <ken.vandine@canonical.com>
44
45 Fixed improperly mapped gconf to gsettings keys, fixes crasher (LP: #858798)
46
32011-09-27 Ted Gould <ted@gould.cx>472011-09-27 Ted Gould <ted@gould.cx>
448
5 0.3.649 0.3.6
650
=== modified file 'configure'
--- configure 2011-09-27 21:56:12 +0000
+++ configure 2011-10-13 18:23:36 +0000
@@ -2745,7 +2745,7 @@
27452745
2746# Define the identity of the package.2746# Define the identity of the package.
2747 PACKAGE=indicator-session2747 PACKAGE=indicator-session
2748 VERSION=0.3.62748 VERSION=0.3.7
27492749
27502750
2751cat >>confdefs.h <<_ACEOF2751cat >>confdefs.h <<_ACEOF
27522752
=== modified file 'configure.ac'
--- configure.ac 2011-09-27 22:05:28 +0000
+++ configure.ac 2011-10-13 18:23:36 +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.6)7AM_INIT_AUTOMAKE(indicator-session, 0.3.7)
88
9AM_MAINTAINER_MODE9AM_MAINTAINER_MODE
1010
1111
=== modified file 'debian/changelog'
--- debian/changelog 2011-10-03 14:29:47 +0000
+++ debian/changelog 2011-10-13 18:23:36 +0000
@@ -1,3 +1,12 @@
1indicator-session (0.3.7-0ubuntu1~ppa1) oneiric; urgency=low
2
3 * New upstream release.
4 * Fix some variant ref issues causing crashes (LP: #863930)
5 * Handle cases of returned dbus messages from ConsoleKit (LP: #864085)
6 * Fixed improperly mapped gconf to gsettings keys (LP: #858798)
7
8 -- Ted Gould <ted@ubuntu.com> Thu, 13 Oct 2011 13:19:13 -0500
9
1indicator-session (0.3.6-0ubuntu2) oneiric; urgency=low10indicator-session (0.3.6-0ubuntu2) oneiric; urgency=low
211
3 * data/indicator-session.convert12 * data/indicator-session.convert
413
=== modified file 'src/apt-transaction.c'
--- src/apt-transaction.c 2011-09-07 11:04:16 +0000
+++ src/apt-transaction.c 2011-10-13 18:23:36 +0000
@@ -232,7 +232,6 @@
232 0,232 0,
233 current_state);233 current_state);
234 }234 }
235 g_variant_unref (parameters);
236}235}
237236
238static void237static void
239238
=== modified file 'src/apt-watcher.c'
--- src/apt-watcher.c 2011-09-19 20:47:59 +0000
+++ src/apt-watcher.c 2011-10-13 18:23:36 +0000
@@ -425,7 +425,7 @@
425 g_return_if_fail (APT_IS_WATCHER (user_data));425 g_return_if_fail (APT_IS_WATCHER (user_data));
426 AptWatcher* self = APT_WATCHER (user_data);426 AptWatcher* self = APT_WATCHER (user_data);
427427
428 g_variant_ref (parameters);428 g_variant_ref_sink (parameters);
429 GVariant *value = g_variant_get_child_value (parameters, 0);429 GVariant *value = g_variant_get_child_value (parameters, 0);
430430
431 if (g_strcmp0(signal_name, "ActiveTransactionsChanged") == 0){431 if (g_strcmp0(signal_name, "ActiveTransactionsChanged") == 0){
@@ -477,6 +477,7 @@
477 } 477 }
478 } 478 }
479479
480 g_variant_unref (value);
480 g_variant_unref (parameters);481 g_variant_unref (parameters);
481}482}
482483
483484
=== modified file 'src/settings-helper.c'
--- src/settings-helper.c 2011-09-06 15:52:08 +0000
+++ src/settings-helper.c 2011-10-13 18:23:36 +0000
@@ -38,41 +38,49 @@
38static guint restart_notify = 0;38static guint restart_notify = 0;
39static guint shutdown_notify = 0;39static guint shutdown_notify = 0;
4040
41static void41static gboolean
42build_settings (void) {42build_settings (void) {
43 if(!settings) {43 if (settings == NULL) {
44 settings = g_settings_new (SESSION_SCHEMA);44 settings = g_settings_new (SESSION_SCHEMA);
45 }45 }
46 return;46 if (settings == NULL) {
47 return FALSE;
48 }
49 return TRUE;
47}50}
4851
49gboolean52gboolean
50supress_confirmations (void) {53supress_confirmations (void) {
51 build_settings();54 gboolean settings_built = build_settings();
55 g_return_val_if_fail(settings_built, FALSE);
52 return g_settings_get_boolean (settings, SUPPRESS_KEY) ;56 return g_settings_get_boolean (settings, SUPPRESS_KEY) ;
53}57}
5458
55gboolean59gboolean
56should_show_user_menu (void) {60should_show_user_menu (void) {
57 build_settings();61 gboolean settings_built = build_settings();
62 g_return_val_if_fail(settings_built, TRUE);
58 return g_settings_get_boolean (settings, SHOW_USER_MENU) ;63 return g_settings_get_boolean (settings, SHOW_USER_MENU) ;
59}64}
6065
61gboolean66gboolean
62show_logout (void) {67show_logout (void) {
63 build_settings();68 gboolean settings_built = build_settings();
69 g_return_val_if_fail(settings_built, TRUE);
64 return !g_settings_get_boolean (settings, LOGOUT_KEY) ;70 return !g_settings_get_boolean (settings, LOGOUT_KEY) ;
65}71}
6672
67gboolean73gboolean
68show_restart (void) {74show_restart (void) {
69 build_settings();75 gboolean settings_built = build_settings();
76 g_return_val_if_fail(settings_built, TRUE);
70 return !g_settings_get_boolean (settings, RESTART_KEY) ;77 return !g_settings_get_boolean (settings, RESTART_KEY) ;
71}78}
7279
73gboolean80gboolean
74show_shutdown (void) {81show_shutdown (void) {
75 build_settings();82 gboolean settings_built = build_settings();
83 g_return_val_if_fail(settings_built, TRUE);
76 return !g_settings_get_boolean (settings, SHUTDOWN_KEY) ;84 return !g_settings_get_boolean (settings, SHUTDOWN_KEY) ;
77}85}
7886
@@ -122,7 +130,8 @@
122void130void
123update_menu_entries(RestartShutdownLogoutMenuItems * restart_shutdown_logout_mi) {131update_menu_entries(RestartShutdownLogoutMenuItems * restart_shutdown_logout_mi) {
124 /* If we don't have a client, build one. */132 /* If we don't have a client, build one. */
125 build_settings();133 gboolean settings_built = build_settings();
134 g_return_if_fail(settings_built);
126135
127 if (confirmation_notify != 0) {136 if (confirmation_notify != 0) {
128 g_signal_handler_disconnect (settings, confirmation_notify);137 g_signal_handler_disconnect (settings, confirmation_notify);

Subscribers

People subscribed via source and target branches

to all changes: