~midori/midori/trunk

« back to all changes in this revision

Viewing changes to extensions/adblock.c

  • Committer: Tarmac
  • Author(s): Christian Dywan
  • Date: 2013-06-22 16:01:42 UTC
  • mfrom: (6220.1.9 midori.gtk2.24)
  • Revision ID: tarmac-20130622160142-4izekhkhw2n4e4o4
Bump GTK+ requirement to 2.24 and drop support for earlier versions

Show diffs side-by-side

added added

removed removed

Lines of Context:
439
439
        gtk_list_store_remove (GTK_LIST_STORE (model), &iter);
440
440
}
441
441
 
442
 
#if GTK_CHECK_VERSION (2, 18, 0)
443
442
static gboolean
444
443
adblock_activate_link_cb (GtkWidget*   label,
445
444
                          const gchar* uri)
449
448
    midori_browser_set_current_tab (browser, view);
450
449
    return TRUE;
451
450
}
452
 
#endif
453
451
 
454
452
static GtkWidget*
455
453
adblock_get_preferences_dialog (MidoriExtension* extension)
512
510
        "Type the address of a preconfigured filter list in the text entry "
513
511
        "and click \"Add\" to add it to the list. "
514
512
        "You can find more lists at %s."),
515
 
        #if GTK_CHECK_VERSION (2, 18, 0)
516
513
        "<a href=\"http://adblockplus.org/en/subscriptions\">adblockplus.org/en/subscriptions</a> "
517
514
        "<a href=\"http://easylist.adblockplus.org/\">easylist.adblockplus.org</a>");
518
 
        #else
519
 
        "<u>http://adblockplus.org/en/subscriptions</u> "
520
 
        "<u>http://easylist.adblockplus.org/</u>");
521
 
        #endif
522
 
    #if GTK_CHECK_VERSION (2, 18, 0)
523
515
    g_signal_connect (button, "activate-link",
524
516
        G_CALLBACK (adblock_activate_link_cb), NULL);
525
 
    #endif
526
517
    gtk_label_set_markup (GTK_LABEL (button), description);
527
518
    g_free (description);
528
519
    gtk_label_set_line_wrap (GTK_LABEL (button), TRUE);