From 8c9efe95028d32496949bd8def6939427298cfc0 Mon Sep 17 00:00:00 2001
From: Marko Lindqvist <cazfi74@gmail.com>
Date: Thu, 10 Oct 2024 22:40:43 +0300
Subject: [PATCH 40/40] gtk4x: Implement FcProdRow for citydlg.c

See RM #952

Signed-off-by: Marko Lindqvist <cazfi74@gmail.com>
---
 client/gui-gtk-5.0/citydlg.c | 51 ++++++++++++++++++++++++++++++++++++
 1 file changed, 51 insertions(+)

diff --git a/client/gui-gtk-5.0/citydlg.c b/client/gui-gtk-5.0/citydlg.c
index 4b3c05832c..5f7b7e0ef4 100644
--- a/client/gui-gtk-5.0/citydlg.c
+++ b/client/gui-gtk-5.0/citydlg.c
@@ -363,6 +363,27 @@ struct _FcImprClass
 
 G_DEFINE_TYPE(FcImprRow, fc_impr_row, G_TYPE_OBJECT)
 
+#define FC_TYPE_PROD_ROW (fc_prod_row_get_type())
+
+G_DECLARE_FINAL_TYPE(FcProdRow, fc_prod_row, FC, PROD_ROW, GObject)
+
+struct _FcProdRow
+{
+  GObject parent_instance;
+
+  char *name;
+  int id;
+  GdkPixbuf *sprite;
+  bool useless;
+};
+
+struct _FcProdClass
+{
+  GObjectClass parent_class;
+};
+
+G_DEFINE_TYPE(FcProdRow, fc_prod_row, G_TYPE_OBJECT)
+
 /**********************************************************************//**
   Initialization method for FcImprRow class
 **************************************************************************/
@@ -393,6 +414,36 @@ static FcImprRow *fc_impr_row_new(void)
 }
 #endif
 
+/**********************************************************************//**
+  Initialization method for FcProdRow class
+**************************************************************************/
+static void
+fc_prod_row_class_init(FcProdRowClass *klass)
+{
+}
+
+/**********************************************************************//**
+  Initialization method for FcProdRow
+**************************************************************************/
+static void
+fc_prod_row_init(FcProdRow *self)
+{
+}
+
+/**********************************************************************//**
+  FcProdRow creation method
+**************************************************************************/
+#if 0
+static FcProdRow *fc_prod_row_new(void)
+{
+  FcProdRow *result;
+
+  result = g_object_new(FC_TYPE_PROD_ROW, nullptr);
+
+  return result;
+}
+#endif
+
 /***********************************************************************//**
   Called to set the dimensions of the city dialog, both on
   startup and if the tileset is changed.
-- 
2.45.2

