[gthumb] removed unused functions
- From: Paolo Bacchilega <paobac src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gthumb] removed unused functions
- Date: Mon, 8 Dec 2014 23:18:37 +0000 (UTC)
commit 91997ebfc5c19fbcb6342113abd40585281cfd68
Author: Paolo Bacchilega <paobac src gnome org>
Date: Mon Dec 8 16:18:52 2014 +0100
removed unused functions
gthumb/dlg-preferences-extensions.c | 76 -----------------------------------
1 files changed, 0 insertions(+), 76 deletions(-)
---
diff --git a/gthumb/dlg-preferences-extensions.c b/gthumb/dlg-preferences-extensions.c
index d07008f..234b2e9 100644
--- a/gthumb/dlg-preferences-extensions.c
+++ b/gthumb/dlg-preferences-extensions.c
@@ -41,13 +41,6 @@
enum {
- EXTENSION_DESCRIPTION_COLUMN,
- EXTENSION_ORIGINAL_STATUS_COLUMN,
- EXTENSION_COLUMNS
-};
-
-
-enum {
CATEGORY_ID_COLUMN,
CATEGORY_NAME_COLUMN,
CATEGORY_ICON_COLUMN,
@@ -165,43 +158,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,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]