[gnome-flashback] notifications: remove unused parameter from nd_stack_add_bubble



commit 5fe67bce1b959644c496f6b955a3b4d2200be2df
Author: Alberts Muktupāvels <alberts muktupavels gmail com>
Date:   Mon Sep 10 21:30:06 2018 +0300

    notifications: remove unused parameter from nd_stack_add_bubble

 gnome-flashback/libnotifications/nd-queue.c |  4 ++--
 gnome-flashback/libnotifications/nd-stack.c | 15 ++++++---------
 gnome-flashback/libnotifications/nd-stack.h |  3 +--
 3 files changed, 9 insertions(+), 13 deletions(-)
---
diff --git a/gnome-flashback/libnotifications/nd-queue.c b/gnome-flashback/libnotifications/nd-queue.c
index 8ebe212..0824b4f 100644
--- a/gnome-flashback/libnotifications/nd-queue.c
+++ b/gnome-flashback/libnotifications/nd-queue.c
@@ -136,7 +136,7 @@ monitor_removed_cb (GdkDisplay *display,
                    old stack since it will try to
                    unrealize the window.  And the
                    stack is going away anyhow. */
-                nd_stack_add_bubble (focused_stack, l->data, TRUE);
+                nd_stack_add_bubble (focused_stack, l->data);
         }
         g_list_free (bubbles);
         g_hash_table_remove (nscreen->stacks, monitor);
@@ -605,7 +605,7 @@ maybe_show_notification (NdQueue *queue)
         bubble = gf_bubble_new_for_notification (notification);
         g_signal_connect (bubble, "destroy", G_CALLBACK (on_bubble_destroyed), queue);
 
-        nd_stack_add_bubble (stack, bubble, TRUE);
+        nd_stack_add_bubble (stack, bubble);
 }
 
 static int
diff --git a/gnome-flashback/libnotifications/nd-stack.c b/gnome-flashback/libnotifications/nd-stack.c
index ea50c9b..7d6ab6f 100644
--- a/gnome-flashback/libnotifications/nd-stack.c
+++ b/gnome-flashback/libnotifications/nd-stack.c
@@ -304,8 +304,7 @@ nd_stack_queue_update_position (NdStack *stack)
 
 void
 nd_stack_add_bubble (NdStack  *stack,
-                     GfBubble *bubble,
-                     gboolean  new_notification)
+                     GfBubble *bubble)
 {
         GtkRequisition  req;
         int             x, y;
@@ -321,13 +320,11 @@ nd_stack_add_bubble (NdStack  *stack,
         gtk_widget_show (GTK_WIDGET (bubble));
         gtk_window_move (GTK_WINDOW (bubble), x, y);
 
-        if (new_notification) {
-                g_signal_connect_swapped (G_OBJECT (bubble),
-                                          "destroy",
-                                          G_CALLBACK (nd_stack_remove_bubble),
-                                          stack);
-                stack->priv->bubbles = g_list_prepend (stack->priv->bubbles, bubble);
-        }
+        g_signal_connect_swapped (G_OBJECT (bubble),
+                                  "destroy",
+                                  G_CALLBACK (nd_stack_remove_bubble),
+                                  stack);
+        stack->priv->bubbles = g_list_prepend (stack->priv->bubbles, bubble);
 }
 
 void
diff --git a/gnome-flashback/libnotifications/nd-stack.h b/gnome-flashback/libnotifications/nd-stack.h
index da6fa7d..278d825 100644
--- a/gnome-flashback/libnotifications/nd-stack.h
+++ b/gnome-flashback/libnotifications/nd-stack.h
@@ -60,8 +60,7 @@ NdStack *       nd_stack_new                   (GdkMonitor     *monitor);
 void            nd_stack_set_location          (NdStack        *stack,
                                                 NdStackLocation location);
 void            nd_stack_add_bubble            (NdStack        *stack,
-                                                GfBubble       *bubble,
-                                                gboolean        new_notification);
+                                                GfBubble       *bubble);
 void            nd_stack_remove_bubble         (NdStack        *stack,
                                                 GfBubble       *bubble);
 void            nd_stack_remove_all            (NdStack        *stack);


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]