[Xfce4-commits] <ristretto:ristretto-0.3> Resolve compiler warnings

Stephan Arts noreply at xfce.org
Sat Mar 3 11:42:01 CET 2012


Updating branch refs/heads/ristretto-0.3
         to 7745cc7fb2a1cb074b10537e964d7bdb6eaa53ed (commit)
       from 161a676aff908a6bcf1397442cfa2f7e043a2266 (commit)

commit 7745cc7fb2a1cb074b10537e964d7bdb6eaa53ed
Author: Stephan Arts <stephan at xfce.org>
Date:   Sat Mar 3 11:39:47 2012 +0100

    Resolve compiler warnings

 src/image_viewer.c |    1 -
 src/main_window.c  |    4 ++--
 2 files changed, 2 insertions(+), 3 deletions(-)

diff --git a/src/image_viewer.c b/src/image_viewer.c
index 08a0f64..7e5baf0 100644
--- a/src/image_viewer.c
+++ b/src/image_viewer.c
@@ -1917,7 +1917,6 @@ cb_rstto_image_loader_closed (GdkPixbufLoader *loader, RsttoImageViewerTransacti
 {
     RsttoImageViewer *viewer = transaction->viewer;
     GtkWidget *widget = GTK_WIDGET(viewer);
-    GtkWidget *vbox, *do_not_show_checkbox;
 
     if (viewer->priv->transaction == transaction)
     {
diff --git a/src/main_window.c b/src/main_window.c
index 2291f03..bdbb2f1 100644
--- a/src/main_window.c
+++ b/src/main_window.c
@@ -438,6 +438,8 @@ rstto_main_window_init (RsttoMainWindow *window)
     GtkRecentFilter *recent_filter;
     guint            window_width, window_height;
     gchar           *desktop_type = NULL;
+    GtkWidget *info_bar_content_area = gtk_info_bar_get_content_area (
+            GTK_INFO_BAR (window->priv->warning));
 
     GClosure        *toggle_fullscreen_closure = g_cclosure_new ((GCallback)cb_rstto_main_window_fullscreen, window, NULL);
     GClosure        *leave_fullscreen_closure = g_cclosure_new_swap ((GCallback)gtk_window_unfullscreen, window, NULL);
@@ -587,8 +589,6 @@ rstto_main_window_init (RsttoMainWindow *window)
     window->priv->warning = gtk_info_bar_new();
     window->priv->warning_label = gtk_label_new(NULL);
 
-    GtkWidget *info_bar_content_area = gtk_info_bar_get_content_area (
-            GTK_INFO_BAR (window->priv->warning));
     gtk_container_add (
             GTK_CONTAINER (info_bar_content_area),
             window->priv->warning_label);


More information about the Xfce4-commits mailing list