Deduplicate cell_renderer_height_override()
[geeqie.git] / src / dupe.cc
index 57f8ba5..dc86cb8 100644 (file)
@@ -3986,26 +3986,6 @@ static void dupe_menu_setup(DupeWindow *dw)
  *-------------------------------------------------------------------
  */
 
-/* this overrides the low default of a GtkCellRenderer from 100 to CELL_HEIGHT_OVERRIDE, something sane for our purposes */
-
-enum {
-       CELL_HEIGHT_OVERRIDE = 512
-};
-
-void cell_renderer_height_override(GtkCellRenderer *renderer)
-{
-       GParamSpec *spec;
-
-       spec = g_object_class_find_property(G_OBJECT_GET_CLASS(G_OBJECT(renderer)), "height");
-       if (spec && G_IS_PARAM_SPEC_INT(spec))
-               {
-               GParamSpecInt *spec_int;
-
-               spec_int = G_PARAM_SPEC_INT(spec);
-               if (spec_int->maximum < CELL_HEIGHT_OVERRIDE) spec_int->maximum = CELL_HEIGHT_OVERRIDE;
-               }
-}
-
 static GdkRGBA *dupe_listview_color_shifted(GtkWidget *widget)
 {
        static GdkRGBA color;