diff options
author | Jon Bergli Heier <snakebite@jvnv.net> | 2010-01-04 22:22:11 +0100 |
---|---|---|
committer | Jon Bergli Heier <snakebite@jvnv.net> | 2010-01-04 22:22:11 +0100 |
commit | 8a31fb62fe129d6ae60810a78a9e201ed5bb6c73 (patch) | |
tree | 57406a09e4c20724263f21ba9b6da640bd18019c /window_main.c | |
parent | 3e664405587c5cf44fa05dc4a5864ce08243c1dc (diff) |
Added -Wall to CCFLAGS and some code cleanup.
Diffstat (limited to 'window_main.c')
-rw-r--r-- | window_main.c | 9 |
1 files changed, 5 insertions, 4 deletions
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() { |