Displaying 2 results from an estimated 2 matches for "g_get_prgname".
2019 Dec 03
7
[p2v PATCH 0/6] Use GLib a bit more
...to reduce the code, start to use few bits of GLib:
- replace the gnulib c-type module
- replace the gnulib getprogname module
- use g_spawn_sync to launch curl, and drop a file reading function
Pino Toscano (6):
  Include glib.h in p2v.h
  Use g_ascii_isspace instead of c_isspace from gnulib
  Use g_get_prgname instead of getprogname from gnulib
  build: remove no more used gnulib modules
  Use g_spawn_sync to launch curl
  Remove whole-file.c
 Makefile.am      |  3 +-
 bootstrap        |  2 --
 conversion.c     |  5 ++-
 cpuid.c          |  4 +--
 gui.c            | 11 +++---
 kernel-cmdline.c |  4 +--...
2008 Jan 14
0
8 commits - player/swfdec-player.c player/swfdec-player.ui player/swfdec-window.c player/swfdec-window-handlers.c
...,
-      swfdec_url_get_url (swfdec_loader_get_url (window->loader)));
+  static const char *mime[2] = { "swfdec-player", NULL };
+  GtkRecentData data = { NULL, NULL, (char *) "application/x-shockwave-flash",
+    (char *) g_get_application_name (), g_strjoin (" ", g_get_prgname (), "%u", NULL), 
+    (char **) mime, FALSE };
+
+  if (swfdec_player_is_initialized (player)) {
+    gtk_recent_manager_add_full (gtk_recent_manager_get_default (),
+	swfdec_url_get_url (swfdec_loader_get_url (window->loader)),
+	&data);
+  }
+  g_free (data.app_exec);
 }
 
 /**...