[gimp] app: gimp_image_window_page_removed() gets the widget, not page



commit fecc04914e051a502c62cbdeeedbddb0330534da
Author: Martin Nordholts <martinn src gnome org>
Date:   Wed Jan 6 14:44:24 2010 +0100

    app: gimp_image_window_page_removed() gets the widget, not page
    
    The first GtkNotebook::"page-removed" signal parameter is the
    GtkWidget that was removed, not a GtkNotebookPage. Correct function
    signature.

 app/display/gimpimagewindow.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/app/display/gimpimagewindow.c b/app/display/gimpimagewindow.c
index 42b4051..0af2339 100644
--- a/app/display/gimpimagewindow.c
+++ b/app/display/gimpimagewindow.c
@@ -139,7 +139,7 @@ static void      gimp_image_window_switch_page         (GtkNotebook         *not
                                                         gint                 page_num,
                                                         GimpImageWindow     *window);
 static void      gimp_image_window_page_removed        (GtkNotebook         *notebook,
-                                                        GtkNotebookPage     *page,
+                                                        GtkWidget           *widget,
                                                         gint                 page_num,
                                                         GimpImageWindow     *window);
 static void      gimp_image_window_disconnect_from_active_shell
@@ -1168,7 +1168,7 @@ gimp_image_window_switch_page (GtkNotebook     *notebook,
 
 static void
 gimp_image_window_page_removed (GtkNotebook     *notebook,
-                                GtkNotebookPage *page,
+                                GtkWidget       *widget,
                                 gint             page_num,
                                 GimpImageWindow *window)
 {



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