~midori/midori/innernodeselect

« back to all changes in this revision

Viewing changes to extensions/adblock.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:
647
647
    adblock_show_preferences_dialog (extension, NULL);
648
648
}
649
649
 
650
 
static inline gint
 
650
static gint
651
651
adblock_check_rule (GRegex*      regex,
652
652
                    const gchar* patt,
653
653
                    const gchar* req_uri,
670
670
    return TRUE;
671
671
}
672
672
 
673
 
static inline gboolean
 
673
static gboolean
674
674
adblock_is_matched_by_pattern (const gchar* req_uri,
675
675
                               const gchar* page_uri)
676
676
{
689
689
    return FALSE;
690
690
}
691
691
 
692
 
static inline gboolean
 
692
static gboolean
693
693
adblock_is_matched_by_key (const gchar* req_uri,
694
694
                           const gchar* page_uri)
695
695
{
1073
1073
    GtkWidget* statusbar;
1074
1074
    GtkWidget* image;
1075
1075
    GList* children;
1076
 
    GtkWidget* view;
1077
 
    gint i;
1078
1076
 
1079
1077
    statusbar = katze_object_get_object (browser, "statusbar");
1080
1078
    image = NULL;
1236
1234
    }
1237
1235
}
1238
1236
 
1239
 
static inline gchar*
 
1237
static gchar*
1240
1238
adblock_add_url_pattern (gchar* prefix,
1241
1239
                         gchar* type,
1242
1240
                         gchar* line)
1295
1293
    return g_string_free (format_patt, should_free);
1296
1294
}
1297
1295
 
1298
 
static inline void
 
1296
static void
1299
1297
adblock_frame_add (gchar* line)
1300
1298
{
1301
1299
    const gchar* separator = " , ";
1329
1327
        g_hash_table_insert (blockcssprivate, g_strdup (domain), g_strdup (value));
1330
1328
}
1331
1329
 
1332
 
static inline void
 
1330
static void
1333
1331
adblock_frame_add_private (const gchar* line,
1334
1332
                           const gchar* sep)
1335
1333
{
1382
1380
     * Block URL:
1383
1381
     *   http://example.com/ads/banner123.gif
1384
1382
     *   http://example.com/ads/banner*.gif
1385
 
     *   http://example.com/ads/*
1386
1383
     * Partial match for "ad":
1387
1384
     *   *ad*
1388
1385
     *   ad
1714
1711
                       MidoriBrowser*   browser)
1715
1712
{
1716
1713
    GList* children;
1717
 
    GtkWidget* view;
1718
1714
    MidoriApp* app = midori_extension_get_app (extension);
1719
1715
    MidoriWebSettings* settings = katze_object_get_object (app, "settings");
1720
1716