Clearlooks: GtkCList is deprecated and not used by Ardour
This commit is contained in:
parent
da175cc2e8
commit
4d7c4bf183
@ -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;
|
||||
|
||||
|
@ -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)
|
||||
{
|
||||
|
@ -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
|
||||
|
@ -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"))
|
||||
|
Loading…
Reference in New Issue
Block a user