Control: tags -1 patch

Dear Maintainer,

I have created a patch to fix this problem.

Regards,

-- 
YOSHINO Yoshihito <yy.y.ja...@gmail.com>
Description: Fix FTBFS on gcc-14
Author: YOSHINO Yoshihito <yy.y.ja...@gmail.com>
Bug-Debian: https://bugs.debian.org/1075108
Origin: other
Forwarded: no
Last-Update: 2025-02-15

Index: kasumi-2.5+debian1/src/cellrendererspin.c
===================================================================
--- kasumi-2.5+debian1.orig/src/cellrendererspin.c
+++ kasumi-2.5+debian1/src/cellrendererspin.c
@@ -74,8 +74,8 @@ static GtkCellEditable *gui_cell_rendere
                                                               GdkEvent             *event,
                                                               GtkWidget            *widget,
                                                               const gchar          *path,
-                                                              GdkRectangle         *background_area,
-                                                              GdkRectangle         *cell_area,
+                                                              const GdkRectangle   *background_area,
+                                                              const GdkRectangle   *cell_area,
                                                               GtkCellRendererState  flags);
 
 struct _GCRSpinInfo
@@ -308,12 +308,14 @@ gui_cell_renderer_spin_start_editing (Gt
                                       GdkEvent             *event,
                                       GtkWidget            *widget,
                                       const gchar          *path,
-                                      GdkRectangle         *background_area,
-                                      GdkRectangle         *cell_area,
+                                      const GdkRectangle   *background_area,
+                                      const GdkRectangle   *cell_area,
                                       GtkCellRendererState  flags)
 {
   GtkCellRendererText *celltext;
   GuiCellRendererSpin *spincell;
+        gboolean editable;
+        gchar *curtext;
         GtkAdjustment       *adj;
   GtkWidget           *spinbutton;
         GCRSpinInfo         *info;
@@ -323,14 +325,16 @@ gui_cell_renderer_spin_start_editing (Gt
         spincell = GUI_CELL_RENDERER_SPIN(cell);
 
   /* If the cell isn't editable we return NULL. */
-  if (gtk_editable_get_editable (GTK_EDITABLE (celltext) == FALSE))
+  g_object_get(celltext, "editable", &editable, NULL);
+  if (editable == FALSE)
     return NULL;
 
   spinbutton = g_object_new (GTK_TYPE_SPIN_BUTTON, "has_frame", FALSE, "numeric", TRUE, NULL);
 
         /* dirty */
-  if (gtk_entry_get_text (celltext))
-                curval = atof(gtk_entry_get_text (celltext));
+  g_object_get(celltext, "text", &curtext, NULL);
+  if (curtext)
+                curval = atof(curtext);
 
         adj = GTK_ADJUSTMENT(gtk_adjustment_new(curval,
                                                 spincell->lower,

Reply via email to