[gthumb] find duplicates: make the help button open the help window



commit 802b2df83ea4a72f8ec7bd55f62384faa8ab16ed
Author: Paolo Bacchilega <paobac src gnome org>
Date:   Mon Apr 4 19:40:41 2011 +0200

    find duplicates: make the help button open the help window

 extensions/find_duplicates/gth-find-duplicates.c |   14 ++++++++++++++
 1 files changed, 14 insertions(+), 0 deletions(-)
---
diff --git a/extensions/find_duplicates/gth-find-duplicates.c b/extensions/find_duplicates/gth-find-duplicates.c
index e4caeb0..7e313d5 100644
--- a/extensions/find_duplicates/gth-find-duplicates.c
+++ b/extensions/find_duplicates/gth-find-duplicates.c
@@ -429,6 +429,16 @@ find_duplicates_dialog_destroy_cb (GtkWidget *dialog,
 
 
 static void
+help_button_clicked_cb (GtkButton *button,
+			gpointer   user_data)
+{
+	GthFindDuplicates *self = user_data;
+
+	show_help_dialog (GTK_WINDOW (GET_WIDGET ("find_duplicates_dialog")), "gthumb-find-duplicates");
+}
+
+
+static void
 update_file_list_sensitivity (GthFindDuplicates *self)
 {
 	GtkTreeModel *model;
@@ -698,6 +708,10 @@ gth_find_duplicates_exec (GthBrowser *browser,
 				  "clicked",
 				  G_CALLBACK (g_cancellable_cancel),
 				  self->priv->cancellable);
+	g_signal_connect (GET_WIDGET ("help_button"),
+			  "clicked",
+			  G_CALLBACK (help_button_clicked_cb),
+			  self);
 	g_signal_connect (gth_file_list_get_view (GTH_FILE_LIST (self->priv->duplicates_list)),
 			  "file-selection-changed",
 			  G_CALLBACK (duplicates_list_view_selection_changed_cb),



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]