13
0

Clearlooks: GtkCList is deprecated and not used by Ardour

This commit is contained in:
Robin Gareus 2023-11-19 18:49:49 +01:00
parent da175cc2e8
commit 4d7c4bf183
Signed by: rgareus
GPG Key ID: A090BCE02CF57F04
4 changed files with 0 additions and 27 deletions

View File

@ -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;

View File

@ -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)
{

View File

@ -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

View File

@ -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"))