From 177c7487c4b46d1106b1efbda9eea5ac57158a88 Mon Sep 17 00:00:00 2001 From: Paul Date: Tue, 11 Jun 2013 14:16:54 +0100 Subject: [PATCH] fix a couple more compiler warnings --- src/foldersel.c | 4 ++-- src/gtk/manage_window.c | 22 +++++++++++----------- 2 files changed, 13 insertions(+), 13 deletions(-) diff --git a/src/foldersel.c b/src/foldersel.c index 2ac11e1c5..ef29fc0cc 100644 --- a/src/foldersel.c +++ b/src/foldersel.c @@ -1,6 +1,6 @@ /* * Sylpheed -- a GTK+ based, lightweight, and fast e-mail client - * Copyright (C) 1999-2012 Hiroyuki Yamamoto and the Claws Mail team + * Copyright (C) 1999-2013 Hiroyuki Yamamoto and the Claws Mail team * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -178,7 +178,7 @@ FolderItem *foldersel_folder_sel(Folder *cur_folder, FolderSelectionType type, gtk_widget_grab_focus(ok_button); gtk_widget_grab_focus(treeview); - gtk_window_present(window); + gtk_window_present(GTK_WINDOW(window)); gtk_window_set_modal(GTK_WINDOW(window), TRUE); manage_window_set_transient(GTK_WINDOW(window)); diff --git a/src/gtk/manage_window.c b/src/gtk/manage_window.c index 0cbad1c1c..a1100ecbf 100644 --- a/src/gtk/manage_window.c +++ b/src/gtk/manage_window.c @@ -1,6 +1,6 @@ /* * Sylpheed -- a GTK+ based, lightweight, and fast e-mail client - * Copyright (C) 1999-2012 Hiroyuki Yamamoto and the Claws Mail team + * Copyright (C) 1999-2013 Hiroyuki Yamamoto and the Claws Mail team * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -28,13 +28,13 @@ GtkWidget *focus_window; gint manage_window_focus_in(GtkWidget *widget, GdkEventFocus *event, gpointer data) { - const gchar *title = NULL; +/* const gchar *title = NULL; */ if (!GTK_IS_WINDOW(widget)) return FALSE; - title = gtk_window_get_title(GTK_WINDOW(widget)); - /* debug_print("Focus in event: window: %p - %s\n", widget, +/* title = gtk_window_get_title(GTK_WINDOW(widget)); + debug_print("Focus in event: window: %p - %s\n", widget, title ? title : "no title"); */ focus_window = widget; @@ -45,13 +45,13 @@ gint manage_window_focus_in(GtkWidget *widget, GdkEventFocus *event, gint manage_window_focus_out(GtkWidget *widget, GdkEventFocus *event, gpointer data) { - const gchar *title = NULL; +/* const gchar *title = NULL; */ if (!GTK_IS_WINDOW(widget)) return FALSE; - title = gtk_window_get_title(GTK_WINDOW(widget)); - /* debug_print("Focus out event: window: %p - %s\n", widget, +/* title = gtk_window_get_title(GTK_WINDOW(widget)); + debug_print("Focus out event: window: %p - %s\n", widget, title ? title : "no title"); */ if (focus_window == widget) @@ -62,8 +62,8 @@ gint manage_window_focus_out(GtkWidget *widget, GdkEventFocus *event, gint manage_window_unmap(GtkWidget *widget, GdkEventAny *event, gpointer data) { - const gchar *title = gtk_window_get_title(GTK_WINDOW(widget)); - /* debug_print("Unmap event: window: %p - %s\n", widget, +/* const gchar *title = gtk_window_get_title(GTK_WINDOW(widget)); + debug_print("Unmap event: window: %p - %s\n", widget, title ? title : "no title"); */ if (focus_window == widget) @@ -74,8 +74,8 @@ gint manage_window_unmap(GtkWidget *widget, GdkEventAny *event, gpointer data) void manage_window_destroy(GtkWidget *widget, gpointer data) { - const gchar *title = gtk_window_get_title(GTK_WINDOW(widget)); - /* debug_print("Destroy event: window: %p - %s\n", widget, +/* const gchar *title = gtk_window_get_title(GTK_WINDOW(widget)); + debug_print("Destroy event: window: %p - %s\n", widget, title ? title : "no title"); */ -- 2.25.1