From 4d7c4bf18398bcffccf04c5ff8d0ac6278a9dca1 Mon Sep 17 00:00:00 2001 From: Robin Gareus Date: Sun, 19 Nov 2023 18:49:49 +0100 Subject: [PATCH] Clearlooks: GtkCList is deprecated and not used by Ardour --- libs/clearlooks-newer/clearlooks_style.c | 6 ------ libs/clearlooks-newer/support.c | 16 ---------------- libs/clearlooks-newer/support.h | 4 ---- libs/clearlooks-newer/widget-information.h | 1 - 4 files changed, 27 deletions(-) diff --git a/libs/clearlooks-newer/clearlooks_style.c b/libs/clearlooks-newer/clearlooks_style.c index 5556a933df..0e9257c5c1 100644 --- a/libs/clearlooks-newer/clearlooks_style.c +++ b/libs/clearlooks-newer/clearlooks_style.c @@ -490,7 +490,6 @@ clearlooks_style_draw_box (DRAW_ARGS) } else if (DETAIL ("button") && widget && widget->parent && (GE_IS_TREE_VIEW(widget->parent) || - GE_IS_CLIST (widget->parent) || ge_object_is_a (G_OBJECT(widget->parent), "ETree"))) /* ECanvas inside ETree */ { WidgetParameters params; @@ -513,11 +512,6 @@ clearlooks_style_draw_box (DRAW_ARGS) widget, &column_index, &columns, &resizable); } - else if (GE_IS_CLIST (widget->parent)) - { - clearlooks_clist_get_header_index (GTK_CLIST(widget->parent), - widget, &column_index, &columns); - } header.resizable = resizable; diff --git a/libs/clearlooks-newer/support.c b/libs/clearlooks-newer/support.c index c3ac9a8864..ac15dff55d 100644 --- a/libs/clearlooks-newer/support.c +++ b/libs/clearlooks-newer/support.c @@ -44,22 +44,6 @@ void clearlooks_treeview_get_header_index (GtkTreeView *tv, GtkWidget *header, g_list_free (list_start); } -void clearlooks_clist_get_header_index (GtkCList *clist, GtkWidget *button, - gint *column_index, gint *columns) -{ - int i; - *columns = clist->columns; - - for (i=0; i<*columns; i++) - { - if (clist->column[i].button == button) - { - *column_index = i; - break; - } - } -} - void clearlooks_get_parent_bg (const GtkWidget *widget, CairoColor *color) { diff --git a/libs/clearlooks-newer/support.h b/libs/clearlooks-newer/support.h index 23e33c58e7..1f24971cf3 100644 --- a/libs/clearlooks-newer/support.h +++ b/libs/clearlooks-newer/support.h @@ -16,10 +16,6 @@ GE_INTERNAL void clearlooks_treeview_get_header_index (GtkTreeView gint *columns, gboolean *resizable); -GE_INTERNAL void clearlooks_clist_get_header_index (GtkCList *clist, - GtkWidget *button, - gint *column_index, - gint *columns); #ifdef DEVELOPMENT #warning clearlooks_get_parent_bg is a bad hack - find out why its needed, and figure out a better way. #endif diff --git a/libs/clearlooks-newer/widget-information.h b/libs/clearlooks-newer/widget-information.h index 75be4c8980..1e819159f3 100644 --- a/libs/clearlooks-newer/widget-information.h +++ b/libs/clearlooks-newer/widget-information.h @@ -60,7 +60,6 @@ #define GE_IS_VBOX(object) ((object) && ge_object_is_a ((GObject*)(object), "GtkVBox")) #define GE_IS_HBOX(object) ((object) && ge_object_is_a ((GObject*)(object), "GtkHBox")) -#define GE_IS_CLIST(object) ((object) && ge_object_is_a ((GObject*)(object), "GtkCList")) #define GE_IS_TREE_VIEW(object) ((object) && ge_object_is_a ((GObject*)(object), "GtkTreeView")) #define GE_IS_ENTRY(object) ((object) && ge_object_is_a ((GObject*)(object), "GtkEntry")) #define GE_IS_BUTTON(object) ((object) && ge_object_is_a ((GObject*)(object), "GtkButton"))