Displaying 4 results from an estimated 4 matches for "g_dir_separator_s".
2007 Nov 06
1
src/plugin.c
...58307c 100644
--- a/src/plugin.c
+++ b/src/plugin.c
@@ -128,22 +128,31 @@ NP_GetValue (void* reserved, NPPVariable var, void* out)
return NPERR_NO_ERROR;
}
-static gboolean
-make_sure_this_thing_stays_in_memory (void)
+/* This mess is unfortunately necessary */
+#define PLUGIN_FILE PLUGIN_DIR G_DIR_SEPARATOR_S "libswfdecmozilla." G_MODULE_SUFFIX
+G_MODULE_EXPORT gboolean
+swfdec_mozilla_make_sure_this_thing_stays_in_memory (void)
{
static gboolean inited = FALSE;
GModule *module;
+ gpointer check;
if (inited)
return TRUE;
- inited = TRUE;
if (!g_module_supported ())...
2008 Jan 14
0
8 commits - player/swfdec-player.c player/swfdec-player.ui player/swfdec-window.c player/swfdec-window-handlers.c
...+static void
+swfdec_window_add_recent_filter (GtkRecentChooser *chooser)
+{
+ GtkRecentFilter *filter;
+
+ filter = gtk_recent_filter_new ();
+ gtk_recent_filter_add_group (filter, "swfdec-player");
+ gtk_recent_chooser_set_filter (chooser, filter);
+}
+
#define BUILDER_FILE DATADIR G_DIR_SEPARATOR_S "swfdec-gnome" G_DIR_SEPARATOR_S "swfdec-player.ui"
/**
* swfdec_window_new:
@@ -172,6 +188,8 @@ swfdec_window_new (const char *url)
return window;
}
gtk_builder_connect_signals (window->builder, window);
+ swfdec_window_add_recent_filter (GTK_RECENT_CHOOSER (...
2007 Nov 06
0
configure.ac src/Makefile.am src/plugin.c
...ut)
return NPERR_NO_ERROR;
}
+static gboolean
+make_sure_this_thing_stays_in_memory (void)
+{
+ static gboolean inited = FALSE;
+ GModule *module;
+
+ if (inited)
+ return TRUE;
+ inited = TRUE;
+ if (!g_module_supported ())
+ return FALSE;
+ module = g_module_open (PLUGIN_DIR G_DIR_SEPARATOR_S "libswfdecmozilla." G_MODULE_SUFFIX, 0);
+ if (module == NULL)
+ return FALSE;
+ g_module_make_resident (module);
+ g_module_close (module);
+ return TRUE;
+}
+
static NPError
plugin_new (NPMIMEType mime_type, NPP instance,
uint16_t mode, int16_t argc, char *argn[], char *ar...
2007 Aug 02
1
player/swfplay.c
...+ url = swfdec_url_new (s);
+ if (g_str_equal (swfdec_url_get_protocol (url), "error")) {
+ char *dir, *full;
+ if (g_path_is_absolute (s))
+ return g_strconcat ("file://", s, NULL);
+ dir = g_get_current_dir ();
+ full = g_strconcat ("file://", dir, G_DIR_SEPARATOR_S, s, NULL);
+ g_free (dir);
+ return full;
+ } else {
+ swfdec_url_free (url);
+ return g_strdup (s);
+ }
+}
+
int
main (int argc, char *argv[])
{
@@ -75,6 +95,7 @@ main (int argc, char *argv[])
gboolean use_image = FALSE, no_sound = FALSE;
gboolean trace = FALSE;
char *va...