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

Proposed by Ted Gould
Status: Merged
Merge reported by: Ken VanDine
Merged at revision: not available
Proposed branch: lp:~indicator-applet-developers/indicator-session/ubuntu
Merge into: lp:~ubuntu-desktop/indicator-session/ubuntu
Diff against target: 143 lines (+43/-27)
5 files modified
configure.ac (+1/-1)
debian/changelog (+12/-0)
debian/patches/restore_lock_screen.patch (+0/-19)
src/dialog.c (+3/-3)
src/indicator-session.c (+27/-4)
To merge this branch: bzr merge lp:~indicator-applet-developers/indicator-session/ubuntu
Reviewer Review Type Date Requested Status
Ken VanDine Approve
Review via email: mp+22136@code.launchpad.net

Description of the change

0.2.7

To post a comment you must log in.
Revision history for this message
Ken VanDine (ken-vandine) wrote :

Approved!

review: Approve
Revision history for this message
Ken VanDine (ken-vandine) wrote :

Manually merged into lp:ubuntu/indicator-session

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
=== modified file 'configure.ac'
--- configure.ac 2010-03-18 19:19:39 +0000
+++ configure.ac 2010-03-25 14:52:30 +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.2.6)7AM_INIT_AUTOMAKE(indicator-session, 0.2.7)
88
9AM_MAINTAINER_MODE9AM_MAINTAINER_MODE
1010
1111
=== modified file 'debian/changelog'
--- debian/changelog 2010-03-23 17:59:37 +0000
+++ debian/changelog 2010-03-25 14:52:30 +0000
@@ -1,3 +1,15 @@
1indicator-session (0.2.7-0ubuntu1~ppa1) lucid; urgency=low
2
3 * Upstream release 0.2.7
4 * Adding a switch for translators if the "Switch From"
5 translation doesn't make sense (LP: #545893)
6 * Scale avatar icons to menu size (LP: #542505)
7 * Fix strings to have all be "Shut Down" (LP: #545578)
8 * Remove debian/patches/restore_lock_screen.patch added by
9 downstream.
10
11 -- Ted Gould <ted@ubuntu.com> Thu, 25 Mar 2010 09:40:31 -0500
12
1indicator-session (0.2.6-0ubuntu2) lucid; urgency=low13indicator-session (0.2.6-0ubuntu2) lucid; urgency=low
214
3 * debian/control: 15 * debian/control:
416
=== removed file 'debian/patches/restore_lock_screen.patch'
--- debian/patches/restore_lock_screen.patch 2010-03-23 17:59:37 +0000
+++ debian/patches/restore_lock_screen.patch 1970-01-01 00:00:00 +0000
@@ -1,19 +0,0 @@
1=== modified file 'src/lock-helper.c'
2--- src/lock-helper.c 2010-03-18 19:19:39 +0000
3+++ src/lock-helper.c 2010-03-23 17:47:37 +0000
4@@ -131,11 +131,12 @@
5 return FALSE;
6 }
7
8- if (gconf_client == NULL) {
9+ /* if (gconf_client == NULL) {
10 gconf_client = gconf_client_get_default();
11 }
12
13- return gconf_client_get_bool (gconf_client, GCONF_KEY, NULL);
14+ return gconf_client_get_bool (gconf_client, GCONF_KEY, NULL); */
15+ return TRUE;
16 }
17
18 /* When the screensave go active, if we've got a mainloop
19
200
=== modified file 'src/dialog.c'
--- src/dialog.c 2010-03-04 02:37:47 +0000
+++ src/dialog.c 2010-03-25 14:52:30 +0000
@@ -34,7 +34,7 @@
34static const gchar * title_strings[LOGOUT_DIALOG_TYPE_CNT] = {34static const gchar * title_strings[LOGOUT_DIALOG_TYPE_CNT] = {
35 /* LOGOUT_DIALOG_LOGOUT, */ NC_("title", "Log Out"),35 /* LOGOUT_DIALOG_LOGOUT, */ NC_("title", "Log Out"),
36 /* LOGOUT_DIALOG_RESTART, */ NC_("title", "Restart"),36 /* LOGOUT_DIALOG_RESTART, */ NC_("title", "Restart"),
37 /* LOGOUT_DIALOG_SHUTDOWN, */ NC_("title", "Switch Off")37 /* LOGOUT_DIALOG_SHUTDOWN, */ NC_("title", "Shut Down")
38};38};
3939
40static const gchar * body_strings[LOGOUT_DIALOG_TYPE_CNT] = {40static const gchar * body_strings[LOGOUT_DIALOG_TYPE_CNT] = {
@@ -46,7 +46,7 @@
46static const gchar * button_strings[LOGOUT_DIALOG_TYPE_CNT] = {46static const gchar * button_strings[LOGOUT_DIALOG_TYPE_CNT] = {
47 /* LOGOUT_DIALOG_LOGOUT, */ NC_("button", "Log Out"),47 /* LOGOUT_DIALOG_LOGOUT, */ NC_("button", "Log Out"),
48 /* LOGOUT_DIALOG_RESTART, */ NC_("button", "Restart"),48 /* LOGOUT_DIALOG_RESTART, */ NC_("button", "Restart"),
49 /* LOGOUT_DIALOG_SHUTDOWN, */ NC_("button", "Switch Off")49 /* LOGOUT_DIALOG_SHUTDOWN, */ NC_("button", "Shut Down")
50};50};
5151
52/* TRANSLATORS: These strings have an ellipsis so that the user knows52/* TRANSLATORS: These strings have an ellipsis so that the user knows
@@ -54,7 +54,7 @@
54static const gchar * button_auth_strings[LOGOUT_DIALOG_TYPE_CNT] = {54static const gchar * button_auth_strings[LOGOUT_DIALOG_TYPE_CNT] = {
55 /* LOGOUT_DIALOG_LOGOUT, */ NC_("button auth", "Log Out"),55 /* LOGOUT_DIALOG_LOGOUT, */ NC_("button auth", "Log Out"),
56 /* LOGOUT_DIALOG_RESTART, */ NC_("button auth", "Restart..."),56 /* LOGOUT_DIALOG_RESTART, */ NC_("button auth", "Restart..."),
57 /* LOGOUT_DIALOG_SHUTDOWN, */ NC_("button auth", "Switch Off...")57 /* LOGOUT_DIALOG_SHUTDOWN, */ NC_("button auth", "Shut Down...")
58};58};
5959
60/* TRANSLATORS: This button appears on the logout dialog when60/* TRANSLATORS: This button appears on the logout dialog when
6161
=== modified file 'src/indicator-session.c'
--- src/indicator-session.c 2010-03-18 19:19:39 +0000
+++ src/indicator-session.c 2010-03-25 14:52:30 +0000
@@ -243,12 +243,26 @@
243 const gchar * icon_name = dbusmenu_menuitem_property_get(newitem, USER_ITEM_PROP_ICON);243 const gchar * icon_name = dbusmenu_menuitem_property_get(newitem, USER_ITEM_PROP_ICON);
244 g_debug("Using user icon for '%s' from file: %s", dbusmenu_menuitem_property_get(newitem, USER_ITEM_PROP_NAME), icon_name);244 g_debug("Using user icon for '%s' from file: %s", dbusmenu_menuitem_property_get(newitem, USER_ITEM_PROP_NAME), icon_name);
245 if (icon_name != NULL && icon_name[0] != '\0') {245 if (icon_name != NULL && icon_name[0] != '\0') {
246 if (g_strcmp0(icon_name, USER_ITEM_ICON_DEFAULT) == 0 || !g_file_test(icon_name, G_FILE_TEST_EXISTS)) {246 if (g_strcmp0(icon_name, USER_ITEM_ICON_DEFAULT) != 0 && g_file_test(icon_name, G_FILE_TEST_EXISTS)) {
247 gint width, height;
248 gtk_icon_size_lookup(GTK_ICON_SIZE_MENU, &width, &height);
249
250 GError * error = NULL;
251 GdkPixbuf * pixbuf = gdk_pixbuf_new_from_file_at_size(icon_name, width, height, &error);
252
253 if (error == NULL) {
254 usericon = gtk_image_new_from_pixbuf(pixbuf);
255 g_object_unref(pixbuf);
256 } else {
257 g_warning("Unable to load user icon '%s': %s", icon_name, error->message);
258 g_error_free(error);
259 }
260 }
261
262 if (usericon == NULL) {
247 GIcon * gicon = g_themed_icon_new_with_default_fallbacks("stock_person-panel");263 GIcon * gicon = g_themed_icon_new_with_default_fallbacks("stock_person-panel");
248 usericon = gtk_image_new_from_gicon(gicon, GTK_ICON_SIZE_MENU);264 usericon = gtk_image_new_from_gicon(gicon, GTK_ICON_SIZE_MENU);
249 g_object_unref(gicon);265 g_object_unref(gicon);
250 } else {
251 usericon = gtk_image_new_from_file(icon_name);
252 }266 }
253 }267 }
254 if (usericon != NULL) {268 if (usericon != NULL) {
@@ -300,11 +314,20 @@
300 GtkMenuItem * gmi = dbusmenu_gtkclient_menuitem_get(DBUSMENU_GTKCLIENT(user_data), item);314 GtkMenuItem * gmi = dbusmenu_gtkclient_menuitem_get(DBUSMENU_GTKCLIENT(user_data), item);
301 gchar * finalstring = NULL;315 gchar * finalstring = NULL;
302 gboolean set_ellipsize = FALSE;316 gboolean set_ellipsize = FALSE;
317 gboolean no_name_in_lang = FALSE;
318
319 /* TRANSLATORS: Translate the '1' below into anything other than
320 '1' if "Switch From %s..." doesn't make sense in your language.
321 Instead, the string "Switch User..." will be used. */
322 const gchar * translate = C_("session_menu:switchfrom", "1");
323 if (g_strcmp0(translate, "1") != 0) {
324 no_name_in_lang = TRUE;
325 }
303326
304 /* If there's a NULL string of some type, then we want to327 /* If there's a NULL string of some type, then we want to
305 go back to our old 'Switch User' which isn't great but328 go back to our old 'Switch User' which isn't great but
306 eh, this error condition should never happen. */329 eh, this error condition should never happen. */
307 if (value == NULL || g_value_get_string(value) == NULL || g_value_get_string(value)[0] == '\0') {330 if (value == NULL || g_value_get_string(value) == NULL || g_value_get_string(value)[0] == '\0' || no_name_in_lang) {
308 finalstring = _("Switch User...");331 finalstring = _("Switch User...");
309 set_ellipsize = FALSE;332 set_ellipsize = FALSE;
310 }333 }

Subscribers

People subscribed via source and target branches

to all changes: