summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--baobab/src/baobab-chart.c2
-rw-r--r--baobab/src/baobab-utils.c7
-rw-r--r--gsearchtool/src/gsearchtool.c5
-rw-r--r--logview/src/logview-filter-manager.c4
-rw-r--r--logview/src/logview-log.c1
-rw-r--r--logview/src/logview-window.c2
6 files changed, 1 insertions, 20 deletions
diff --git a/baobab/src/baobab-chart.c b/baobab/src/baobab-chart.c
index c84c14b1..adaf76d9 100644
--- a/baobab/src/baobab-chart.c
+++ b/baobab/src/baobab-chart.c
@@ -984,14 +984,12 @@ baobab_chart_set_item_highlight (GtkWidget *chart,
{
BaobabChartItem *item;
BaobabChartPrivate *priv;
- BaobabChartClass *class;
if (node == NULL)
return;
item = (BaobabChartItem *) node->data;
priv = BAOBAB_CHART_GET_PRIVATE (chart);
- class = BAOBAB_CHART_GET_CLASS (chart);
if (highlighted)
priv->highlighted_item = node;
diff --git a/baobab/src/baobab-utils.c b/baobab/src/baobab-utils.c
index fb68924b..b7539a93 100644
--- a/baobab/src/baobab-utils.c
+++ b/baobab/src/baobab-utils.c
@@ -381,9 +381,7 @@ open_file_with_application (GFile *file)
GAppInfo *application;
gchar *primary;
GFileInfo *info;
- gchar *uri_scheme;
const char *content;
- gboolean local = FALSE;
info = g_file_query_info (file,
G_FILE_ATTRIBUTE_STANDARD_CONTENT_TYPE,
@@ -392,9 +390,6 @@ open_file_with_application (GFile *file)
NULL);
if (!info) return;
- uri_scheme = g_file_get_uri_scheme (file);
- if (g_ascii_strcasecmp(uri_scheme,"file") == 0) local = TRUE;
-
content = g_file_info_get_content_type (info);
application = g_app_info_get_default_for_type (content, TRUE);
@@ -420,8 +415,6 @@ open_file_with_application (GFile *file)
g_free (uri);
}
- g_free (uri_scheme);
-
if (application)
g_object_unref (application);
diff --git a/gsearchtool/src/gsearchtool.c b/gsearchtool/src/gsearchtool.c
index 13e29c69..27ea4200 100644
--- a/gsearchtool/src/gsearchtool.c
+++ b/gsearchtool/src/gsearchtool.c
@@ -2513,11 +2513,6 @@ static void
gsearchtool_init_stock_icons (void)
{
GtkIconFactory * factory;
- GtkIconSize gsearchtool_icon_size;
-
- gsearchtool_icon_size = gtk_icon_size_register ("panel-menu",
- MATE_SEARCH_TOOL_DEFAULT_ICON_SIZE,
- MATE_SEARCH_TOOL_DEFAULT_ICON_SIZE);
factory = gtk_icon_factory_new ();
gtk_icon_factory_add_default (factory);
diff --git a/logview/src/logview-filter-manager.c b/logview/src/logview-filter-manager.c
index 44a21550..c4c5057b 100644
--- a/logview/src/logview-filter-manager.c
+++ b/logview/src/logview-filter-manager.c
@@ -170,7 +170,7 @@ on_dialog_add_edit_reponse (GtkWidget *dialog, int response_id,
LogviewFilterManager *manager)
{
GtkWidget *entry_name, *entry_regex;
- GtkWidget *radio_color, *radio_visible;
+ GtkWidget *radio_color;
GtkWidget *check_foreground, *check_background;
GtkWidget *color_foreground, *color_background;
gchar *old_name;
@@ -189,8 +189,6 @@ on_dialog_add_edit_reponse (GtkWidget *dialog, int response_id,
"entry_regex"));
radio_color = GTK_WIDGET (gtk_builder_get_object (builder,
"radio_color"));
- radio_visible = GTK_WIDGET (gtk_builder_get_object (builder,
- "radio_visible"));
check_foreground = GTK_WIDGET (gtk_builder_get_object (builder,
"check_foreground"));
check_background = GTK_WIDGET (gtk_builder_get_object (builder,
diff --git a/logview/src/logview-log.c b/logview/src/logview-log.c
index 407f49c3..272fb463 100644
--- a/logview/src/logview-log.c
+++ b/logview/src/logview-log.c
@@ -309,7 +309,6 @@ do_read_new_lines (GIOSchedulerJob *io_job,
log->priv->has_new_lines = FALSE;
/* we'll return only the new lines in the callback */
- line = g_ptr_array_index (lines, log->priv->lines_no);
job->lines = (const char **) lines->pdata + log->priv->lines_no;
/* save the new number of days and lines */
diff --git a/logview/src/logview-window.c b/logview/src/logview-window.c
index b7120812..602c3572 100644
--- a/logview/src/logview-window.c
+++ b/logview/src/logview-window.c
@@ -663,7 +663,6 @@ update_filter_menu (LogviewWindow *window)
GList *actions, *l;
guint id;
GList *filters;
- GtkTextBuffer *buffer;
GtkTextTagTable *table;
GtkTextTag *tag;
GtkToggleAction *action;
@@ -674,7 +673,6 @@ update_filter_menu (LogviewWindow *window)
g_return_if_fail (priv->filter_action_group != NULL);
- buffer = gtk_text_view_get_buffer (GTK_TEXT_VIEW (priv->text_view));
table = priv->tag_table;
if (priv->filter_merge_id != 0) {