tazweb diff src/main.c @ rev 45

Rename bookmarks_cb to my_page_cb to follow callback name
author Christophe Lincoln <pankso@slitaz.org>
date Tue Apr 19 01:12:28 2011 +0200 (2011-04-19)
parents 460f65e36cb3
children 329c2beaf754
line diff
     1.1 --- a/src/main.c	Tue Apr 19 00:42:04 2011 +0200
     1.2 +++ b/src/main.c	Tue Apr 19 01:12:28 2011 +0200
     1.3 @@ -82,9 +82,9 @@
     1.4      webkit_web_view_load_uri (web_view, uri);
     1.5  }
     1.6  
     1.7 -/* Bookmarks button function */
     1.8 +/* My page button function */
     1.9  static void
    1.10 -bookmarks_cb (GtkWidget* widget, gpointer data)
    1.11 +my_page_cb (GtkWidget* widget, gpointer data)
    1.12  {
    1.13      const gchar* uri = g_strdup_printf ("file://%s/.config/tazweb/page.html",
    1.14                                           g_get_home_dir ());
    1.15 @@ -214,9 +214,9 @@
    1.16      g_signal_connect (G_OBJECT (item), "clicked", G_CALLBACK (go_home_cb), NULL);
    1.17      gtk_toolbar_insert (GTK_TOOLBAR (toolbar), item, -1);
    1.18  
    1.19 -    /* The Bookmarks button */
    1.20 +    /* The personal page button */
    1.21      item = gtk_tool_button_new_from_stock (GTK_STOCK_PREFERENCES);
    1.22 -    g_signal_connect (G_OBJECT (item), "clicked", G_CALLBACK (bookmarks_cb), NULL);
    1.23 +    g_signal_connect (G_OBJECT (item), "clicked", G_CALLBACK (my_page_cb), NULL);
    1.24      gtk_toolbar_insert (GTK_TOOLBAR (toolbar), item, -1);
    1.25  
    1.26      /* The TazWeb doc button */
    1.27 @@ -258,8 +258,7 @@
    1.28      const gchar* config = g_strdup_printf ("%s/.config/tazweb", g_get_home_dir ());
    1.29      if (!g_file_test(config, G_FILE_TEST_EXISTS)) {
    1.30          g_mkdir (config, 0700);
    1.31 -        system ("cp /usr/share/tazweb/*.html $HOME/.config/tazweb");
    1.32 -        system ("cp /usr/share/tazweb/*.css $HOME/.config/tazweb");
    1.33 +        system ("cp /usr/share/tazweb/* $HOME/.config/tazweb");
    1.34      }
    1.35  
    1.36      GtkWidget* vbox = gtk_vbox_new (FALSE, 2);