summaryrefslogtreecommitdiff
path: root/gio
diff options
context:
space:
mode:
authorMurray Cumming <murrayc@murrayc.com>2008-02-22 12:24:44 +0000
committerMurray Cumming <murrayc@src.gnome.org>2008-02-22 12:24:44 +0000
commit26f8f1b341890ff26ee47565e23337e677be8ef9 (patch)
treeeb5c779cfaf838ef7780f63ac2fefe69bddf8912 /gio
parentd7f3db2927121fe8501b49920b1b91aa7ebba1f1 (diff)
downloadglibmm-26f8f1b341890ff26ee47565e23337e677be8ef9.tar.gz
Added dup(). Added signals for GMount and GVolume. This deals with the
2008-02-22 Murray Cumming <murrayc@murrayc.com> * gio/src/fileattributeinfolist.hg: Added dup(). * gio/src/gio_others.defs: Added signals for GMount and GVolume. This deals with the gmmproc warnings. svn path=/trunk/; revision=616
Diffstat (limited to 'gio')
-rw-r--r--gio/src/fileattributeinfolist.hg2
-rw-r--r--gio/src/gio_others.defs29
-rw-r--r--gio/src/mount.hg4
3 files changed, 31 insertions, 4 deletions
diff --git a/gio/src/fileattributeinfolist.hg b/gio/src/fileattributeinfolist.hg
index a69b2480..60bd0afd 100644
--- a/gio/src/fileattributeinfolist.hg
+++ b/gio/src/fileattributeinfolist.hg
@@ -71,6 +71,8 @@ public:
FileAttributeInfo lookup(const std::string& name) const;
_IGNORE(g_file_attribute_info_list_lookup)
+ _WRAP_METHOD(Glib::RefPtr<FileAttributeInfoList> dup() const, g_file_attribute_info_list_dup)
+
_WRAP_METHOD(void add(const std::string& name, FileAttributeType type, FileAttributeInfoFlags flags = FILE_ATTRIBUTE_INFO_NONE), g_file_attribute_info_list_add)
};
diff --git a/gio/src/gio_others.defs b/gio/src/gio_others.defs
index 2b884b29..7330612b 100644
--- a/gio/src/gio_others.defs
+++ b/gio/src/gio_others.defs
@@ -3,3 +3,32 @@
(c-name "g_themed_icon_get_names")
(return-type "const-char*const*")
)
+
+
+; extra_defs does not generate these, for some reason. murrayc:
+(define-signal changed
+ (of-object "GMount")
+ (return-type "void")
+ (when "last")
+)
+
+(define-signal unmounted
+ (of-object "GMount")
+ (return-type "void")
+ (when "last")
+)
+
+; extra_defs does not generate these, for some reason. murrayc:
+(define-signal changed
+ (of-object "GVolume")
+ (return-type "void")
+ (when "last")
+)
+
+(define-signal removed
+ (of-object "GVolume")
+ (return-type "void")
+ (when "last")
+)
+
+
diff --git a/gio/src/mount.hg b/gio/src/mount.hg
index 5e72fc88..b78bd4ec 100644
--- a/gio/src/mount.hg
+++ b/gio/src/mount.hg
@@ -165,14 +165,10 @@ public:
_WRAP_METHOD(bool eject_finish(const Glib::RefPtr<AsyncResult>& result), g_mount_eject_finish, errthrow)
- //TODO: For some reason these are not in gio_signals.defs. We may need to hand-write them in gio_others.defs. murrayc.
_WRAP_SIGNAL(void changed(), changed)
_WRAP_SIGNAL(void unmounted(), unmounted)
//There are no properties.
-
- //TODO: vfuncs.
-
};
} // namespace Gio