[evince] Fix several unused-but-set-variable compile warnings
- From: Carlos Garcia Campos <carlosgc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [evince] Fix several unused-but-set-variable compile warnings
- Date: Sun, 4 Dec 2011 12:35:14 +0000 (UTC)
commit 0981802cdbe41f712f8b9d4729a7392df837b4d7
Author: Carlos Garcia Campos <carlosgc gnome org>
Date: Sun Dec 4 13:34:20 2011 +0100
Fix several unused-but-set-variable compile warnings
libview/ev-view-presentation.c | 6 ------
libview/ev-view.c | 2 --
shell/ev-annotation-properties-dialog.c | 3 ---
shell/ev-password-view.c | 2 --
shell/ev-sidebar-links.c | 2 --
shell/ev-window.c | 5 -----
6 files changed, 0 insertions(+), 20 deletions(-)
---
diff --git a/libview/ev-view-presentation.c b/libview/ev-view-presentation.c
index 98429b6..e978b75 100644
--- a/libview/ev-view-presentation.c
+++ b/libview/ev-view-presentation.c
@@ -994,8 +994,6 @@ ev_view_presentation_draw_end_page (EvViewPresentation *pview,
PangoLayout *layout;
PangoFontDescription *font_desc;
gchar *markup;
- GtkAllocation allocation;
- GdkRectangle area = {0};
const gchar *text = _("End of presentation. Click to exit.");
if (pview->state != EV_PRESENTATION_END)
@@ -1010,10 +1008,6 @@ ev_view_presentation_draw_end_page (EvViewPresentation *pview,
pango_font_description_set_size (font_desc, 16 * PANGO_SCALE);
pango_layout_set_font_description (layout, font_desc);
- gtk_widget_get_allocation (widget, &allocation);
- area.width = allocation.width;
- area.height = allocation.height;
-
gtk_render_layout (gtk_widget_get_style_context (widget),
cr, 15, 15, layout);
diff --git a/libview/ev-view.c b/libview/ev-view.c
index 1a371d6..d540dc1 100644
--- a/libview/ev-view.c
+++ b/libview/ev-view.c
@@ -3634,10 +3634,8 @@ ev_view_button_press_event (GtkWidget *widget,
if (view->window_child_focus) {
EvAnnotationWindow *window;
- EvAnnotation *annot;
window = EV_ANNOTATION_WINDOW (view->window_child_focus->window);
- annot = ev_annotation_window_get_annotation (window);
ev_annotation_window_ungrab_focus (window);
view->window_child_focus = NULL;
}
diff --git a/shell/ev-annotation-properties-dialog.c b/shell/ev-annotation-properties-dialog.c
index 6b50c69..87efc40 100644
--- a/shell/ev-annotation-properties-dialog.c
+++ b/shell/ev-annotation-properties-dialog.c
@@ -86,12 +86,9 @@ static void
ev_annotation_properties_dialog_constructed (GObject *object)
{
EvAnnotationPropertiesDialog *dialog = EV_ANNOTATION_PROPERTIES_DIALOG (object);
- GtkWidget *contant_area = gtk_dialog_get_content_area (GTK_DIALOG (dialog));
GtkWidget *grid = dialog->grid;
GtkWidget *label;
- contant_area = gtk_dialog_get_content_area (GTK_DIALOG (dialog));
-
switch (dialog->annot_type) {
case EV_ANNOTATION_TYPE_TEXT:
label = gtk_label_new (_("Icon:"));
diff --git a/shell/ev-password-view.c b/shell/ev-password-view.c
index 58e0ea1..bd362c0 100644
--- a/shell/ev-password-view.c
+++ b/shell/ev-password-view.c
@@ -77,10 +77,8 @@ static void
ev_password_view_class_init (EvPasswordViewClass *class)
{
GObjectClass *g_object_class;
- GtkWidgetClass *widget_class;
g_object_class = G_OBJECT_CLASS (class);
- widget_class = GTK_WIDGET_CLASS (class);
password_view_signals[UNLOCK] =
g_signal_new ("unlock",
diff --git a/shell/ev-sidebar-links.c b/shell/ev-sidebar-links.c
index 28a4fdd..4f34ead 100644
--- a/shell/ev-sidebar-links.c
+++ b/shell/ev-sidebar-links.c
@@ -217,11 +217,9 @@ static void
selection_changed_callback (GtkTreeSelection *selection,
EvSidebarLinks *ev_sidebar_links)
{
- EvDocument *document;
GtkTreeModel *model;
GtkTreeIter iter;
- document = EV_DOCUMENT (ev_sidebar_links->priv->document);
g_return_if_fail (ev_sidebar_links->priv->document != NULL);
if (gtk_tree_selection_get_selected (selection, &model, &iter)) {
diff --git a/shell/ev-window.c b/shell/ev-window.c
index 70817af..2c9568f 100644
--- a/shell/ev-window.c
+++ b/shell/ev-window.c
@@ -2360,14 +2360,9 @@ static void
ev_window_reload_document (EvWindow *ev_window,
EvLinkDest *dest)
{
- gint page;
-
-
ev_window_clear_reload_job (ev_window);
ev_window->priv->in_reload = TRUE;
- page = ev_document_model_get_page (ev_window->priv->model);
-
if (ev_window->priv->dest)
g_object_unref (ev_window->priv->dest);
ev_window->priv->dest = dest ? g_object_ref (dest) : NULL;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]