[balsa/wip/gtk4: 9/351] Adapt to new "size-allocate" signal



commit c08e04d2d39a8e48f0b3cf72a5837a40e9fe9435
Author: Peter Bloomfield <PeterBloomfield bellsouth net>
Date:   Wed Oct 4 18:01:28 2017 -0400

    Adapt to new "size-allocate" signal

 libbalsa/source-viewer.c        |    1 +
 src/balsa-mblist.c              |   10 ++++++----
 src/balsa-message.c             |    1 +
 src/balsa-mime-widget-message.c |    1 +
 src/main-window.c               |    4 ++--
 src/message-window.c            |    2 +-
 src/sendmsg-window.c            |    6 +++---
 7 files changed, 15 insertions(+), 10 deletions(-)
---
diff --git a/libbalsa/source-viewer.c b/libbalsa/source-viewer.c
index 6b84ac5..35727dd 100644
--- a/libbalsa/source-viewer.c
+++ b/libbalsa/source-viewer.c
@@ -170,6 +170,7 @@ lsv_window_destroy_notify(LibBalsaSourceViewerInfo * lsvi)
 
 static void
 lsv_size_allocate_cb(GtkWidget * window, GtkAllocation * alloc,
+                     gint baseline, GtkAllocation * clip,
                      LibBalsaSourceViewerInfo * lsvi)
 {
     GdkWindow *gdk_window;
diff --git a/src/balsa-mblist.c b/src/balsa-mblist.c
index fae7a9d..3631e85 100644
--- a/src/balsa-mblist.c
+++ b/src/balsa-mblist.c
@@ -111,8 +111,9 @@ static gint bmbl_row_compare(GtkTreeModel * model,
 static gboolean bmbl_button_press_cb(GtkWidget * widget,
                                      GdkEvent * event,
                                      gpointer data);
-static void bmbl_column_resize(GtkWidget * widget,
-                               GtkAllocation * allocation, gpointer data);
+static void bmbl_column_resize(GtkWidget * widget, GtkAllocation * allocation,
+                               gint baseline, GtkAllocation * clip,
+                               gpointer data);
 static void bmbl_drag_cb(GtkWidget * widget, GdkDragContext * context,
                          gint x, gint y,
                          GtkSelectionData * selection_data, guint info,
@@ -764,8 +765,9 @@ bmbl_do_popup(GtkTreeView * tree_view, GtkTreePath * path,
  * so they can be saved and restored between sessions.
  * */
 static void
-bmbl_column_resize(GtkWidget * widget,
-                           GtkAllocation * allocation, gpointer data)
+bmbl_column_resize(GtkWidget * widget, GtkAllocation * allocation,
+                   gint baseline, GtkAllocation * clip,
+                   gpointer data)
 {
     GtkTreeView *tree_view = GTK_TREE_VIEW(widget);
     gint name_width =
diff --git a/src/balsa-message.c b/src/balsa-message.c
index 975d62e..9be7572 100644
--- a/src/balsa-message.c
+++ b/src/balsa-message.c
@@ -338,6 +338,7 @@ bm_on_set_style(GtkWidget * widget,
 
 static void
 on_content_size_alloc(GtkWidget * widget, GtkAllocation * allocation,
+                      gint baseline, GtkAllocation * clip,
                      gpointer user_data)
 {
     gtk_container_foreach (GTK_CONTAINER(widget), balsa_mime_widget_image_resize_all, NULL);
diff --git a/src/balsa-mime-widget-message.c b/src/balsa-mime-widget-message.c
index 48ab48b..2007359 100644
--- a/src/balsa-mime-widget-message.c
+++ b/src/balsa-mime-widget-message.c
@@ -530,6 +530,7 @@ bm_header_widget_new(BalsaMessage * bm, GtkWidget * const * buttons)
 
 static gboolean
 label_size_allocate_cb(GtkLabel * label, GdkRectangle * rectangle,
+                       gint baseline, GdkRectangle * clip,
                        GtkWidget * expander)
 {
     PangoLayout *layout;
diff --git a/src/main-window.c b/src/main-window.c
index d47c279..bb878c3 100644
--- a/src/main-window.c
+++ b/src/main-window.c
@@ -156,7 +156,7 @@ static void bw_find_real(BalsaWindow * window, BalsaIndex * bindex,
 static void bw_slave_position_cb(GtkPaned   * paned_slave,
                                  GParamSpec * pspec,
                                  gpointer     user_data);
-static void bw_size_allocate_cb(GtkWidget * window, GtkAllocation * alloc);
+static void bw_size_allocate_cb(GtkWidget * window);
 
 static void bw_notebook_switch_page_cb(GtkWidget * notebook,
                                        void * page,
@@ -4319,7 +4319,7 @@ bw_slave_position_cb(GtkPaned   * paned_slave,
 }
 
     static void
-bw_size_allocate_cb(GtkWidget * window, GtkAllocation * alloc)
+bw_size_allocate_cb(GtkWidget * window)
 {
     gtk_window_get_size(GTK_WINDOW(window),
                         & balsa_app.mw_width,
diff --git a/src/message-window.c b/src/message-window.c
index 1c2fec8..90af556 100644
--- a/src/message-window.c
+++ b/src/message-window.c
@@ -511,7 +511,7 @@ mw_close_activated(GSimpleAction * action, GVariant * parameter,
 }
 
 static void
-size_alloc_cb(GtkWidget * window, GtkAllocation * alloc)
+size_alloc_cb(GtkWidget * window)
 {
     GdkWindow *gdk_window;
 
diff --git a/src/sendmsg-window.c b/src/sendmsg-window.c
index 7c84270..0ec1795 100644
--- a/src/sendmsg-window.c
+++ b/src/sendmsg-window.c
@@ -120,7 +120,7 @@ static void replace_identity_signature(BalsaSendmsg* bsmsg,
                                        const gchar* new_sig);
 static void update_bsmsg_identity(BalsaSendmsg*, LibBalsaIdentity*);
 
-static void sw_size_alloc_cb(GtkWidget * window, GtkAllocation * alloc);
+static void sw_size_alloc_cb(GtkWidget * window);
 static GString *quote_message_body(BalsaSendmsg * bsmsg,
                                    LibBalsaMessage * message,
                                    QuoteType type);
@@ -1304,7 +1304,7 @@ update_bsmsg_identity(BalsaSendmsg* bsmsg, LibBalsaIdentity* ident)
 
 
 static void
-sw_size_alloc_cb(GtkWidget * window, GtkAllocation * alloc)
+sw_size_alloc_cb(GtkWidget * window)
 {
     GdkWindow *gdk_window;
 
@@ -6636,7 +6636,7 @@ sendmsg_window_new()
     g_signal_connect(G_OBJECT(window), "destroy",
                     G_CALLBACK(destroy_event_cb), bsmsg);
     g_signal_connect(G_OBJECT(window), "size_allocate",
-                    G_CALLBACK(sw_size_alloc_cb), bsmsg);
+                    G_CALLBACK(sw_size_alloc_cb), NULL);
     /* If any compose windows are open when Balsa is closed, we want
      * them also to be closed. */
     g_object_weak_ref(G_OBJECT(balsa_app.main_window),


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