changeset 1295:8c59e6e50bd8

Fix up few compilation warnings.
author zas_
date Sun, 15 Feb 2009 15:56:48 +0000
parents 7ac9664242b2
children cfe814fc8e74
files src/bar_comment.c src/bar_keywords.c
diffstat 2 files changed, 3 insertions(+), 7 deletions(-) [+]
line wrap: on
line diff
--- a/src/bar_comment.c	Sun Feb 15 13:11:21 2009 +0000
+++ b/src/bar_comment.c	Sun Feb 15 15:56:48 2009 +0000
@@ -163,7 +163,7 @@
 	PaneCommentData *pcd = data;
 
 	menu_item_add_divider(GTK_WIDGET(menu));
-	menu_item_add_stock(GTK_WIDGET(menu), _("Add text to selected files"), GTK_STOCK_ADD, G_CALLBACK(bar_pane_comment_sel_add_cb), data);
+	menu_item_add_stock(GTK_WIDGET(menu), _("Add text to selected files"), GTK_STOCK_ADD, G_CALLBACK(bar_pane_comment_sel_add_cb), pcd);
 	menu_item_add_stock(GTK_WIDGET(menu), _("Replace existing text in selected files"), GTK_STOCK_CONVERT, G_CALLBACK(bar_pane_comment_sel_replace_cb), data);
 }
 
--- a/src/bar_keywords.c	Sun Feb 15 13:11:21 2009 +0000
+++ b/src/bar_keywords.c	Sun Feb 15 15:56:48 2009 +0000
@@ -598,8 +598,8 @@
 	PaneKeywordsData *pkd = data;
 
 	menu_item_add_divider(GTK_WIDGET(menu));
-	menu_item_add_stock(GTK_WIDGET(menu), _("Add keywords to selected files"), GTK_STOCK_ADD, G_CALLBACK(bar_pane_keywords_sel_add_cb), data);
-	menu_item_add_stock(GTK_WIDGET(menu), _("Replace existing keywords in selected files"), GTK_STOCK_CONVERT, G_CALLBACK(bar_pane_keywords_sel_replace_cb), data);
+	menu_item_add_stock(GTK_WIDGET(menu), _("Add keywords to selected files"), GTK_STOCK_ADD, G_CALLBACK(bar_pane_keywords_sel_add_cb), pkd);
+	menu_item_add_stock(GTK_WIDGET(menu), _("Replace existing keywords in selected files"), GTK_STOCK_CONVERT, G_CALLBACK(bar_pane_keywords_sel_replace_cb), pkd);
 }
 
 
@@ -709,13 +709,9 @@
 GtkWidget *bar_pane_keywords_new(const gchar *title, const gchar *key)
 {
 	PaneKeywordsData *pkd;
-	GtkWidget *box;
 	GtkWidget *hbox;
-	GtkWidget *table;
 	GtkWidget *scrolled;
 	GtkTextBuffer *buffer;
-	GtkWidget *label;
-	GtkWidget *tbar;
 	GtkListStore *store;
 	GtkTreeViewColumn *column;
 	GtkCellRenderer *renderer;