~midori/midori/innernodeselect

« back to all changes in this revision

Viewing changes to midori/sokoke.c

  • Committer: Tarmac
  • Author(s): Paweł Forysiuk, Christian Dywan
  • Date: 2013-11-05 18:00:59 UTC
  • mfrom: (6448.1.33 less-warnings)
  • Revision ID: tarmac-20131105180059-dypdrl07lyejesr3
Resolve compiler warnings in current trunk

Add EXTRA_WARNINGS flag to increase verbosity
Respect VALAC for the Vala compiler if defined
Sort out Vala 0.16 build issues
Make warnings fatal for bzr builds

Show diffs side-by-side

added added

removed removed

Lines of Context:
127
127
 
128
128
}
129
129
 
 
130
#ifndef G_OS_WIN32
130
131
static void
131
132
sokoke_open_with_response_cb (GtkWidget* dialog,
132
133
                              gint       response,
140
141
    }
141
142
    gtk_widget_destroy (dialog);
142
143
}
 
144
#endif
143
145
 
144
146
GAppInfo*
145
147
sokoke_default_for_uri (const gchar* uri,
859
861
                     GCallback           callback,
860
862
                     gpointer            user_data)
861
863
{
862
 
    #define MAXHOSTS 50
863
 
    static gchar* hosts = NULL;
864
 
    static gint host_count = G_MAXINT;
865
864
    gchar* hostname;
866
 
 
867
 
 
868
865
#ifndef HAVE_WEBKIT2
869
866
    SoupURI* soup_uri;
870
867
    SoupSession* session = webkit_get_default_session ();
891
888
    g_free (hostname);
892
889
    return FALSE;
893
890
#else
 
891
    #define MAXHOSTS 50
 
892
    static gchar* hosts = NULL;
 
893
    static gint host_count = G_MAXINT;
 
894
 
894
895
    if (!hosts ||
895
896
        !g_regex_match_simple (hostname, hosts,
896
897
                               G_REGEX_CASELESS, G_REGEX_MATCH_NOTEMPTY))
1093
1094
        launcher_type = "-a";
1094
1095
    else if (g_str_has_suffix (prefix, " -c "))
1095
1096
        launcher_type = "-c";
 
1097
    else
 
1098
        g_assert_not_reached ();
1096
1099
 
1097
1100
    argument = g_strdup_printf ("%s \"%s\"", launcher_type, uri);
1098
1101