From 8a31fb62fe129d6ae60810a78a9e201ed5bb6c73 Mon Sep 17 00:00:00 2001 From: Jon Bergli Heier Date: Mon, 4 Jan 2010 22:22:11 +0100 Subject: Added -Wall to CCFLAGS and some code cleanup. --- window_main.c | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'window_main.c') diff --git a/window_main.c b/window_main.c index 8a72ed5..bbfa922 100644 --- a/window_main.c +++ b/window_main.c @@ -85,7 +85,6 @@ inline static void tagview_create_model(GtkTreeView *tagview) { inline static void tagview_init(GtkTreeView *tagview) { GtkTreeViewColumn *col1, *col2; GtkCellRenderer *renderer; - GtkTreeSelection *selection; col1 = gtk_tree_view_column_new(); gtk_tree_view_column_set_title(col1, "Show"); @@ -120,7 +119,7 @@ static void resize_pixbuf() { GdkPixbuf *pb; GdkWindow *window; gint win_width, win_height, img_width, img_height, width, height; - gdouble scalex, scaley, width_ratio, height_ratio, max_ratio; + gdouble scalex, scaley, width_ratio, height_ratio; /* Skip if no pixbuf is loaded yet. */ if(!orig_pixbuf) return; @@ -208,9 +207,7 @@ static void walls_set_window_title() { } static void load_pixbuf(const gchar *filepath) { - GdkPixbuf *pb; GError *error = NULL; - GdkWindow *window; sqlite_uint64 wallid; struct wallpaper_t *wall; gchar *base; @@ -580,6 +577,8 @@ static void do_thumbview_popup(GtkWidget *widget, GdkEventButton *event) { gboolean on_thumbview_popup_menu(GtkWidget *widget, gpointer user_data) { do_thumbview_popup(widget, NULL); + + return TRUE; } gboolean on_thumbview_button_press_event(GtkWidget *widget, GdkEventButton *event) { @@ -599,6 +598,8 @@ gboolean on_left_pages_switch_page(GtkNotebook *notebook, GtkNotebookTab page, g display_from_tagview(); break; } + + return TRUE; } static void save_window() { -- cgit v1.2.3