Commit 91997ebf authored by Paolo Bacchilega's avatar Paolo Bacchilega
Browse files

removed unused functions

parent 1c117abb
......@@ -40,13 +40,6 @@
#define CARDINALITY_FORMAT "(%d)"
enum {
EXTENSION_DESCRIPTION_COLUMN,
EXTENSION_ORIGINAL_STATUS_COLUMN,
EXTENSION_COLUMNS
};
enum {
CATEGORY_ID_COLUMN,
CATEGORY_NAME_COLUMN,
......@@ -164,43 +157,6 @@ list_equal (GList *list1,
}
static void
extension_description_data_func_cb (GtkTreeViewColumn *tree_column,
GtkCellRenderer *cell,
GtkTreeModel *tree_model,
GtkTreeIter *iter,
gpointer user_data)
{
GthExtensionDescription *description;
char *text;
gtk_tree_model_get (tree_model, iter, EXTENSION_DESCRIPTION_COLUMN, &description, -1);
text = g_markup_printf_escaped ("<b>%s</b>\n<small>%s</small>", description->name, description->description);
g_object_set (G_OBJECT (cell), "markup", text, NULL);
g_object_set (G_OBJECT (cell), "sensitive", gth_extension_description_is_active (description), NULL);
g_free (text);
g_object_unref (description);
}
static void
extension_active_data_func_cb (GtkTreeViewColumn *tree_column,
GtkCellRenderer *cell,
GtkTreeModel *tree_model,
GtkTreeIter *iter,
gpointer user_data)
{
GthExtensionDescription *description;
gtk_tree_model_get (tree_model, iter, EXTENSION_DESCRIPTION_COLUMN, &description, -1);
g_object_set (G_OBJECT (cell), "active", gth_extension_description_is_active (description), NULL);
g_object_unref (description);
}
static void
add_category_combobox_columns (GtkWidget *combo_box,
BrowserData *data)
......@@ -390,38 +346,6 @@ category_view_separator_func (GtkTreeModel *model,
}
static gboolean
category_model_visible_func (GtkTreeModel *model,
GtkTreeIter *iter,
gpointer user_data)
{
BrowserData *data = user_data;
GthExtensionDescription *description;
gboolean original_status_is_active;
gboolean visible;
if (strcmp (data->current_category, EXTENSION_CATEGORY_ALL) == 0)
return TRUE;
gtk_tree_model_get (model, iter,
EXTENSION_DESCRIPTION_COLUMN, &description,
EXTENSION_ORIGINAL_STATUS_COLUMN, &original_status_is_active,
-1);
visible = FALSE;
if ((strcmp (data->current_category, EXTENSION_CATEGORY_ENABLED) == 0) && original_status_is_active)
visible = TRUE;
else if ((strcmp (data->current_category, EXTENSION_CATEGORY_DISABLED) == 0) && ! original_status_is_active)
visible = TRUE;
else
visible = g_strcmp0 (description->category, data->current_category) == 0;
g_object_unref (description);
return visible;
}
static void
extension_switch_activated_cb (GObject *gobject,
GParamSpec *pspec,
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment