tazweb diff src/main.c @ rev 46

Small code clean-up
author Christophe Lincoln <pankso@slitaz.org>
date Tue Apr 19 01:34:35 2011 +0200 (2011-04-19)
parents 020cf8b6e14e
children 88c8f1e20324
line diff
     1.1 --- a/src/main.c	Tue Apr 19 01:12:28 2011 +0200
     1.2 +++ b/src/main.c	Tue Apr 19 01:34:35 2011 +0200
     1.3 @@ -32,14 +32,6 @@
     1.4  }
     1.5  
     1.6  static void
     1.7 -activate_uri_entry_cb (GtkWidget* entry, gpointer data)
     1.8 -{
     1.9 -    const gchar* uri = gtk_entry_get_text (GTK_ENTRY (entry));
    1.10 -    g_assert (uri);
    1.11 -    webkit_web_view_load_uri (web_view, uri);
    1.12 -}
    1.13 -
    1.14 -static void
    1.15  notify_title_cb (WebKitWebView* web_view, GParamSpec* pspec, gpointer data)
    1.16  {
    1.17      if (main_title)
    1.18 @@ -67,6 +59,15 @@
    1.19      }
    1.20  }
    1.21  
    1.22 +/* URL entry callback function */
    1.23 +static void
    1.24 +activate_uri_entry_cb (GtkWidget* entry, gpointer data)
    1.25 +{
    1.26 +    const gchar* uri = gtk_entry_get_text (GTK_ENTRY (entry));
    1.27 +    g_assert (uri);
    1.28 +    webkit_web_view_load_uri (web_view, uri);
    1.29 +}
    1.30 +
    1.31  static void
    1.32  destroy_cb (GtkWidget* widget, gpointer data)
    1.33  {
    1.34 @@ -111,7 +112,7 @@
    1.35      webkit_web_view_reload (web_view);
    1.36  }
    1.37  
    1.38 -/* Fullscreen and unfullscreen action */
    1.39 +/* Fullscreen and unfullscreen function */
    1.40  static void
    1.41  fullscreen_cb (GtkWindow* window, gpointer data)
    1.42  {
    1.43 @@ -237,7 +238,7 @@
    1.44  {
    1.45      GtkWidget* window = gtk_window_new (GTK_WINDOW_TOPLEVEL);
    1.46  
    1.47 -    /* Default tazweb window size ratio to 3/4 ?? --> 720, 540*/
    1.48 +    /* Default tazweb window size ratio to 3/4 --> 720, 540*/
    1.49      gtk_window_set_default_size (GTK_WINDOW (window), 800, 600);
    1.50      gtk_window_set_icon (GTK_WINDOW (window),
    1.51                           create_pixbuf ("/usr/share/pixmaps/tazweb.png"));