glibmm r614 - in trunk: . gio/src



Author: murrayc
Date: Thu Feb 21 22:17:20 2008
New Revision: 614
URL: http://svn.gnome.org/viewvc/glibmm?rev=614&view=rev

Log:
2008-02-21  Murray Cumming  <murrayc murrayc com>

* gio/src/desktopappinfo.hg: Revert the change from Josà which removed 
use of _WRAP_CTOR() and _WRAP_CREATE(). We really do want to use these 
so we instantiate derived GTypes.

Modified:
   trunk/ChangeLog
   trunk/gio/src/desktopappinfo.hg

Modified: trunk/gio/src/desktopappinfo.hg
==============================================================================
--- trunk/gio/src/desktopappinfo.hg	(original)
+++ trunk/gio/src/desktopappinfo.hg	Thu Feb 21 22:17:20 2008
@@ -38,8 +38,11 @@
   _CLASS_GOBJECT(DesktopAppInfo, GDesktopAppInfo, G_DESKTOP_APP_INFO, Glib::Object, GObject)
   _IMPLEMENTS_INTERFACE(AppInfo)
 
+protected:
+  _WRAP_CTOR(DesktopAppInfo(const std::string& desktop_id), g_desktop_app_info_new)
+
 public:
-  _WRAP_METHOD(static Glib::RefPtr<DesktopAppInfo> create(const std::string& desktop_id), g_desktop_app_info_new)
+  _WRAP_CREATE(const std::string& desktop_id)
   _WRAP_METHOD(static Glib::RefPtr<DesktopAppInfo> create_from_filename(const std::string& filename), g_desktop_app_info_new_from_filename)
   _WRAP_METHOD(bool is_hidden() const, g_desktop_app_info_get_is_hidden)
   _WRAP_METHOD(static void set_desktop_env(const std::string& desktop_env), g_desktop_app_info_set_desktop_env)



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