summaryrefslogtreecommitdiff
path: root/window_main.c
diff options
context:
space:
mode:
Diffstat (limited to 'window_main.c')
-rw-r--r--window_main.c9
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() {