[gnome-software] installed: Add proper return value to ::delete-event handler



commit 8c1a910df42d15ad70f1cbc890ae5a21fb5df15a
Author: Florian Müllner <fmuellner gnome org>
Date:   Thu Sep 18 14:18:48 2014 +0100

    installed: Add proper return value to ::delete-event handler
    
    GtkWidget::delete-event has a boolean return value to indicate whether
    signal emission should continue or be stopped - by avoiding an explicit
    return value, the latter may happen, making the app-folder dialog
    impossible to close.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=736902

 src/gs-shell-installed.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/src/gs-shell-installed.c b/src/gs-shell-installed.c
index a9cc1b2..d37a3a2 100644
--- a/src/gs-shell-installed.c
+++ b/src/gs-shell-installed.c
@@ -705,10 +705,11 @@ selection_changed (GsShellInstalled *shell_installed)
        gtk_widget_set_visible (priv->button_folder_remove, has_folders);
 }
 
-static void
+static gboolean
 folder_dialog_done (GsShellInstalled *shell_installed)
 {
        set_selection_mode (shell_installed, FALSE);
+       return FALSE;
 }
 
 static void


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