/[xlog]/xlog/src/gui_aboutdialog.c
ViewVC logotype

Diff of /xlog/src/gui_aboutdialog.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.9 by pa4tu, Thu Mar 10 19:50:53 2005 UTC revision 1.10 by pa4tu, Fri Mar 11 12:33:27 2005 UTC
# Line 32  extern GtkWidget *mainwindow; Line 32  extern GtkWidget *mainwindow;
32  static void  static void
33  handle_url (GtkAboutDialog *about, const char *link, gpointer data)  handle_url (GtkAboutDialog *about, const char *link, gpointer data)
34  {  {
35          gint in;          gchar *command[] = {"firefox", NULL, NULL};
         gchar *command[] = {"/usr/bin/firefox", NULL, NULL};  
36    
37          command[1] = g_strdup (link);          command[1] = g_strdup (link);
38          g_spawn_async_with_pipes          g_spawn_async
39                  (NULL, command, NULL, 0, NULL, NULL, NULL, &in, NULL, NULL, NULL);                  (NULL, command, NULL, G_SPAWN_SEARCH_PATH, NULL, NULL, NULL, NULL);
40          g_free (command[1]);          g_free (command[1]);
41  }  }
42    
43  static void  static void
44  handle_email (GtkAboutDialog *about, const char *link, gpointer data)  handle_email (GtkAboutDialog *about, const char *link, gpointer data)
45  {  {
46          gint in;          gchar *command[] = {"evolution", NULL, NULL};
         gchar *command[] = {"/usr/bin/evolution", NULL, NULL};  
47    
48          command[1] = g_strdup_printf ("mailto:%s", link);          command[1] = g_strdup_printf ("mailto:%s", link);
49          g_spawn_async_with_pipes          g_spawn_async
50                  (NULL, command, NULL, 0, NULL, NULL, NULL, &in, NULL, NULL, NULL);                  (NULL, command, NULL, G_SPAWN_SEARCH_PATH, NULL, NULL, NULL, NULL);
51          g_free (command[1]);          g_free (command[1]);
52  }  }
53    

Legend:
Removed from v.1.9  
changed lines
  Added in v.1.10

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26