static void thunarx_provider_module_set_property (GObject *object, guint prop_id, const GValue *value, GParamSpec *pspec) { ThunarxProviderPlugin *plugin = THUNARX_PROVIDER_PLUGIN (object); switch (prop_id) { case PROP_RESIDENT: thunarx_provider_plugin_set_resident (plugin, g_value_get_boolean (value)); break; default: G_OBJECT_WARN_INVALID_PROPERTY_ID (object, prop_id, pspec); break; } }
G_MODULE_EXPORT void thunar_extension_initialize(ThunarxProviderPlugin* plugin) { const gchar* mismatch; /* verify that the thunarx versions are compatible */ mismatch = thunarx_check_version(THUNARX_MAJOR_VERSION, THUNARX_MINOR_VERSION, THUNARX_MICRO_VERSION); if(G_LIKELY(mismatch == NULL)) { g_message("Initializing xdiff-ext extension; DIFF_EXT_DATA_DIR='%s'", DIFF_EXT_DATA_DIR); { int n; char** path; int i; gtk_icon_theme_get_search_path(gtk_icon_theme_get_default(), &path, &n); for(i = 0; i < n; i++) { g_message("icon search path: '%s'", path[i]); } } #ifdef ENABLE_NLS bindtextdomain(GETTEXT_PACKAGE, DIFF_EXT_LOCALE_DIR); bind_textdomain_codeset(GETTEXT_PACKAGE, "UTF-8"); #endif /* ENABLE_NLS */ /* register the types provided by this plugin */ diff_ext_register_type(plugin); /* setup the plugin type list */ type_list[0] = diff_ext_get_type(); _saved = g_queue_new(); thunarx_provider_plugin_set_resident(plugin, TRUE); } else { g_warning("Version mismatch: %s", mismatch); } }