gnome-commander r2208 - in trunk: . src
- From: epiotr svn gnome org
- To: svn-commits-list gnome org
- Subject: gnome-commander r2208 - in trunk: . src
- Date: Sat, 18 Oct 2008 09:42:35 +0000 (UTC)
Author: epiotr
Date: Sat Oct 18 09:42:35 2008
New Revision: 2208
URL: http://svn.gnome.org/viewvc/gnome-commander?rev=2208&view=rev
Log:
Added signal "dir-changed" (GnomeCmdFileList -> GnomeCmdFileSelector)
Modified:
trunk/ChangeLog
trunk/src/gnome-cmd-file-list.cc
trunk/src/gnome-cmd-file-list.h
trunk/src/gnome-cmd-file-selector.cc
Modified: trunk/src/gnome-cmd-file-list.cc
==============================================================================
--- trunk/src/gnome-cmd-file-list.cc (original)
+++ trunk/src/gnome-cmd-file-list.cc Sat Oct 18 09:42:35 2008
@@ -62,6 +62,7 @@
LIST_CLICKED, // The file list widget was clicked
EMPTY_SPACE_CLICKED, // The file list was clicked but not on a file
FILES_CHANGED, // The visible content of the file list has changed (files have been: selected, created, deleted or modified)
+ DIR_CHANGED, // The current directory has been changed
LAST_SIGNAL
};
@@ -1282,11 +1283,21 @@
GTK_TYPE_NONE,
0);
+ file_list_signals[DIR_CHANGED] =
+ gtk_signal_new ("dir-changed",
+ GTK_RUN_LAST,
+ G_OBJECT_CLASS_TYPE (object_class),
+ GTK_SIGNAL_OFFSET (GnomeCmdFileListClass, dir_changed),
+ gtk_marshal_NONE__POINTER,
+ GTK_TYPE_NONE,
+ 1, GTK_TYPE_POINTER);
+
object_class->destroy = destroy;
widget_class->map = ::map;
klass->file_clicked = NULL;
klass->list_clicked = NULL;
klass->files_changed = NULL;
+ klass->dir_changed = NULL;
}
static void init (GnomeCmdFileList *fl)
Modified: trunk/src/gnome-cmd-file-list.h
==============================================================================
--- trunk/src/gnome-cmd-file-list.h (original)
+++ trunk/src/gnome-cmd-file-list.h Sat Oct 18 09:42:35 2008
@@ -159,6 +159,7 @@
void (* list_clicked) (GnomeCmdFileList *fl, GdkEventButton *button);
void (* empty_space_clicked) (GnomeCmdFileList *fl, GdkEventButton *button);
void (* files_changed) (GnomeCmdFileList *fl);
+ void (* dir_changed) (GnomeCmdFileList *fl, GnomeCmdDir *dir);
};
Modified: trunk/src/gnome-cmd-file-selector.cc
==============================================================================
--- trunk/src/gnome-cmd-file-selector.cc (original)
+++ trunk/src/gnome-cmd-file-selector.cc Sat Oct 18 09:42:35 2008
@@ -954,6 +954,11 @@
}
+static void on_list_dir_changed (GnomeCmdFileList *fl, GnomeCmdDir *dir, GnomeCmdFileSelector *fs)
+{
+}
+
+
static void on_dir_list_ok (GnomeCmdDir *dir, GList *files, GnomeCmdFileSelector *fs)
{
DEBUG('l', "on_dir_list_ok\n");
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]