[epiphany/wip/exalm/gtk4-cleanups-2: 4/11] tab-view: Copy GtkCallback in tree




commit 65e4dca33e7ec449bb43a23b49601434e5c00179
Author: Alexander Mikhaylenko <alexm gnome org>
Date:   Tue Nov 30 02:49:45 2021 +0500

    tab-view: Copy GtkCallback in tree
    
    Have EphyTabViewCallback, since GtkCallback will go away in GTK4.

 src/ephy-tab-view.c | 6 +++---
 src/ephy-tab-view.h | 9 ++++++---
 2 files changed, 9 insertions(+), 6 deletions(-)
---
diff --git a/src/ephy-tab-view.c b/src/ephy-tab-view.c
index 17be93184..e2c785892 100644
--- a/src/ephy-tab-view.c
+++ b/src/ephy-tab-view.c
@@ -240,9 +240,9 @@ ephy_tab_view_close_other (EphyTabView *self)
 }
 
 void
-ephy_tab_view_foreach (EphyTabView *self,
-                       GtkCallback  callback,
-                       gpointer     user_data)
+ephy_tab_view_foreach (EphyTabView         *self,
+                       EphyTabViewCallback  callback,
+                       gpointer             user_data)
 {
   int i, n;
 
diff --git a/src/ephy-tab-view.h b/src/ephy-tab-view.h
index fb8e0dc57..b95d1c85f 100644
--- a/src/ephy-tab-view.h
+++ b/src/ephy-tab-view.h
@@ -30,6 +30,9 @@ G_BEGIN_DECLS
 
 G_DECLARE_FINAL_TYPE (EphyTabView, ephy_tab_view, EPHY, TAB_VIEW, GtkBin)
 
+typedef void (*EphyTabViewCallback) (GtkWidget *widget,
+                                     gpointer   data);
+
 EphyTabView *ephy_tab_view_new                (void);
 
 void         ephy_tab_view_next               (EphyTabView *self);
@@ -44,9 +47,9 @@ void         ephy_tab_view_close_left         (EphyTabView *self);
 void         ephy_tab_view_close_right        (EphyTabView *self);
 void         ephy_tab_view_close_other        (EphyTabView *self);
 
-void         ephy_tab_view_foreach            (EphyTabView *self,
-                                               GtkCallback  callback,
-                                               gpointer     user_data);
+void         ephy_tab_view_foreach            (EphyTabView         *self,
+                                               EphyTabViewCallback  callback,
+                                               gpointer             user_data);
 
 gint         ephy_tab_view_get_n_pages        (EphyTabView *self);
 gint         ephy_tab_view_get_selected_index (EphyTabView *self);


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