Merge lp:~3v1n0/libappindicator/discord-indicator-crash-fix into lp:libappindicator

Proposed by Marco Trevisan (Treviño)
Status: Merged
Approved by: Marco Trevisan (Treviño)
Approved revision: 297
Merged at revision: 295
Proposed branch: lp:~3v1n0/libappindicator/discord-indicator-crash-fix
Merge into: lp:libappindicator
Diff against target: 104 lines (+21/-9)
2 files modified
debian/changelog (+12/-0)
src/app-indicator.c (+9/-9)
To merge this branch: bzr merge lp:~3v1n0/libappindicator/discord-indicator-crash-fix
Reviewer Review Type Date Requested Status
Marco Trevisan (Treviño) Pending
Review via email: mp+381952@code.launchpad.net

This proposal supersedes a proposal from 2020-04-08.

To post a comment you must log in.
Revision history for this message
Marco Trevisan (Treviño) (3v1n0) : Posted in a previous version of this proposal
review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
=== modified file 'debian/changelog'
--- debian/changelog 2020-04-08 15:23:22 +0000
+++ debian/changelog 2020-04-08 18:57:21 +0000
@@ -1,3 +1,15 @@
1libappindicator (12.10.1+18.04.20180322.1-0ubuntu7) UNRELEASED; urgency=medium
2
3 [ Paul G ]
4 * app-indicator: Don't pass unexpected parameter to signal emissions
5 (LP: #1867996)
6
7 [ Ash Holland ]
8 * app-indicator: Only check for item numbers when iterating array
9 (LP: #1867996)
10
11 -- Marco Trevisan (Treviño) <marco@ubuntu.com> Wed, 08 Apr 2020 17:55:12 +0200
12
1libappindicator (12.10.1+18.04.20180322.1-0ubuntu6) focal; urgency=medium13libappindicator (12.10.1+18.04.20180322.1-0ubuntu6) focal; urgency=medium
214
3 * Disable mono on riscv64 too.15 * Disable mono on riscv64 too.
416
=== modified file 'src/app-indicator.c'
--- src/app-indicator.c 2019-02-20 23:40:32 +0000
+++ src/app-indicator.c 2020-04-08 18:57:21 +0000
@@ -508,7 +508,7 @@
508 G_STRUCT_OFFSET (AppIndicatorClass, new_icon),508 G_STRUCT_OFFSET (AppIndicatorClass, new_icon),
509 NULL, NULL,509 NULL, NULL,
510 g_cclosure_marshal_VOID__VOID,510 g_cclosure_marshal_VOID__VOID,
511 G_TYPE_NONE, 0, G_TYPE_NONE);511 G_TYPE_NONE, 0);
512512
513 /**513 /**
514 * AppIndicator::new-attention-icon:514 * AppIndicator::new-attention-icon:
@@ -522,7 +522,7 @@
522 G_STRUCT_OFFSET (AppIndicatorClass, new_attention_icon),522 G_STRUCT_OFFSET (AppIndicatorClass, new_attention_icon),
523 NULL, NULL,523 NULL, NULL,
524 g_cclosure_marshal_VOID__VOID,524 g_cclosure_marshal_VOID__VOID,
525 G_TYPE_NONE, 0, G_TYPE_NONE);525 G_TYPE_NONE, 0);
526526
527 /**527 /**
528 * AppIndicator::new-status:528 * AppIndicator::new-status:
@@ -570,7 +570,7 @@
570 G_STRUCT_OFFSET (AppIndicatorClass, connection_changed),570 G_STRUCT_OFFSET (AppIndicatorClass, connection_changed),
571 NULL, NULL,571 NULL, NULL,
572 g_cclosure_marshal_VOID__BOOLEAN,572 g_cclosure_marshal_VOID__BOOLEAN,
573 G_TYPE_NONE, 1, G_TYPE_BOOLEAN, G_TYPE_NONE);573 G_TYPE_NONE, 1, G_TYPE_BOOLEAN);
574574
575 /**575 /**
576 * AppIndicator::new-icon-theme-path:576 * AppIndicator::new-icon-theme-path:
@@ -1280,7 +1280,7 @@
1280 gchar * guide = priv->label_guide != NULL ? priv->label_guide : "";1280 gchar * guide = priv->label_guide != NULL ? priv->label_guide : "";
12811281
1282 g_signal_emit(G_OBJECT(self), signals[NEW_LABEL], 0,1282 g_signal_emit(G_OBJECT(self), signals[NEW_LABEL], 0,
1283 label, guide, TRUE);1283 label, guide);
1284 if (priv->dbus_registration != 0 && priv->connection != NULL) {1284 if (priv->dbus_registration != 0 && priv->connection != NULL) {
1285 GError * error = NULL;1285 GError * error = NULL;
12861286
@@ -1496,7 +1496,7 @@
1496static void1496static void
1497theme_changed_cb (GtkIconTheme * theme, gpointer user_data)1497theme_changed_cb (GtkIconTheme * theme, gpointer user_data)
1498{1498{
1499 g_signal_emit (user_data, signals[NEW_ICON], 0, TRUE);1499 g_signal_emit (user_data, signals[NEW_ICON], 0);
15001500
1501 AppIndicator * self = (AppIndicator *)user_data;1501 AppIndicator * self = (AppIndicator *)user_data;
1502 AppIndicatorPrivate *priv = self->priv;1502 AppIndicatorPrivate *priv = self->priv;
@@ -1616,7 +1616,7 @@
1616 gint n_elements, i;1616 gint n_elements, i;
1617 gboolean found=FALSE;1617 gboolean found=FALSE;
1618 gtk_icon_theme_get_search_path(icon_theme, &path, &n_elements);1618 gtk_icon_theme_get_search_path(icon_theme, &path, &n_elements);
1619 for (i=0; i< n_elements || path[i] == NULL; i++) {1619 for (i=0; i< n_elements; i++) {
1620 if(g_strcmp0(path[i], theme_path) == 0) {1620 if(g_strcmp0(path[i], theme_path) == 0) {
1621 found=TRUE;1621 found=TRUE;
1622 break;1622 break;
@@ -1922,7 +1922,7 @@
1922 }1922 }
19231923
1924 if (changed) {1924 if (changed) {
1925 g_signal_emit (self, signals[NEW_ATTENTION_ICON], 0, TRUE);1925 g_signal_emit (self, signals[NEW_ATTENTION_ICON], 0);
19261926
1927 if (self->priv->dbus_registration != 0 && self->priv->connection != NULL) {1927 if (self->priv->dbus_registration != 0 && self->priv->connection != NULL) {
1928 GError * error = NULL;1928 GError * error = NULL;
@@ -2008,7 +2008,7 @@
2008 }2008 }
20092009
2010 if (changed) {2010 if (changed) {
2011 g_signal_emit (self, signals[NEW_ICON], 0, TRUE);2011 g_signal_emit (self, signals[NEW_ICON], 0);
20122012
2013 if (self->priv->dbus_registration != 0 && self->priv->connection != NULL) {2013 if (self->priv->dbus_registration != 0 && self->priv->connection != NULL) {
2014 GError * error = NULL;2014 GError * error = NULL;
@@ -2137,7 +2137,7 @@
2137 g_free (self->priv->absolute_icon_theme_path);2137 g_free (self->priv->absolute_icon_theme_path);
2138 self->priv->absolute_icon_theme_path = get_real_theme_path (self);2138 self->priv->absolute_icon_theme_path = get_real_theme_path (self);
21392139
2140 g_signal_emit (self, signals[NEW_ICON_THEME_PATH], 0, self->priv->icon_theme_path, TRUE);2140 g_signal_emit (self, signals[NEW_ICON_THEME_PATH], 0, self->priv->icon_theme_path);
21412141
2142 if (self->priv->dbus_registration != 0 && self->priv->connection != NULL) {2142 if (self->priv->dbus_registration != 0 && self->priv->connection != NULL) {
2143 const gchar *theme_path = self->priv->absolute_icon_theme_path ?2143 const gchar *theme_path = self->priv->absolute_icon_theme_path ?

Subscribers

People subscribed via source and target branches