[gnome-commander] GnomeCmdFileSelector: pass fs to "file-clicked" and "file-released" handlers



commit 5ad01317ae6094b7c8e414be924a75bdfb74a21d
Author: Piotr Eljasiak <epiotr src gnome org>
Date:   Thu Dec 30 01:11:28 2010 +0100

    GnomeCmdFileSelector: pass fs to "file-clicked" and "file-released" handlers

 src/gnome-cmd-file-selector.cc |    8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)
---
diff --git a/src/gnome-cmd-file-selector.cc b/src/gnome-cmd-file-selector.cc
index 7a0f687..c81119e 100644
--- a/src/gnome-cmd-file-selector.cc
+++ b/src/gnome-cmd-file-selector.cc
@@ -439,14 +439,14 @@ static void on_notebook_switch_page (GtkNotebook *notebook, GtkNotebookPage *pag
 }
 
 
-static void on_list_file_clicked (GnomeCmdFileList *fl, GnomeCmdFile *f, GdkEventButton *event, gpointer)
+static void on_list_file_clicked (GnomeCmdFileList *fl, GnomeCmdFile *f, GdkEventButton *event, GnomeCmdFileSelector *fs)
 {
     if (event->type == GDK_2BUTTON_PRESS && event->button == 1 && gnome_cmd_data.left_mouse_button_mode == GnomeCmdData::LEFT_BUTTON_OPENS_WITH_DOUBLE_CLICK)
         do_file_specific_action (fl, f);
 }
 
 
-static void on_list_file_released (GnomeCmdFileList *fl, GnomeCmdFile *f, GdkEventButton *event, gpointer)
+static void on_list_file_released (GnomeCmdFileList *fl, GnomeCmdFile *f, GdkEventButton *event, GnomeCmdFileSelector *fs)
 {
     if (event->type == GDK_BUTTON_RELEASE && event->button == 1 && !fl->modifier_click && gnome_cmd_data.left_mouse_button_mode == GnomeCmdData::LEFT_BUTTON_OPENS_WITH_SINGLE_CLICK)
         do_file_specific_action (fl, f);
@@ -1356,8 +1356,8 @@ GtkWidget *GnomeCmdFileSelector::new_tab(GnomeCmdDir *dir, GnomeCmdFileList::Col
     if (dir)
         list->set_connection(gnome_cmd_dir_get_connection (dir), dir);
 
-    g_signal_connect (list, "file-clicked", G_CALLBACK (on_list_file_clicked), NULL);
-    g_signal_connect (list, "file-released", G_CALLBACK (on_list_file_released), NULL);
+    g_signal_connect (list, "file-clicked", G_CALLBACK (on_list_file_clicked), this);
+    g_signal_connect (list, "file-released", G_CALLBACK (on_list_file_released), this);
     g_signal_connect (list, "list-clicked", G_CALLBACK (on_list_list_clicked), this);
     g_signal_connect (list, "empty-space-clicked", G_CALLBACK (on_list_empty_space_clicked), this);
 



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