~ubuntu-branches/ubuntu/quantal/epiphany-extensions/quantal

« back to all changes in this revision

Viewing changes to extensions/rss/rss-ui.c

  • Committer: Bazaar Package Importer
  • Author(s): Frederic Peters
  • Date: 2011-04-14 19:04:24 UTC
  • mfrom: (1.1.43 upstream) (2.3.16 experimental)
  • Revision ID: james.westby@ubuntu.com-20110414190424-df2o8wz2pei97hbd
Tags: 3.0.0-2
debian/control.in: bump build-dep on epiphany.

Show diffs side-by-side

added added

removed removed

Lines of Context:
68
68
 
69
69
enum
70
70
{
71
 
        PROP_DIALOG,
72
 
        PROP_TITLE,
73
 
        PROP_FEEDS,
74
 
        PROP_SUBSCRIBE,
75
 
        PROP_CLOSE,
76
 
};
77
 
 
78
 
static const
79
 
EphyDialogProperty properties [] =
80
 
{
81
 
        { "rss_ui",     NULL, PT_NORMAL, 0 },
82
 
        { "title",      NULL, PT_NORMAL, 0 },
83
 
        { "feeds",      NULL, PT_NORMAL, 0 },
84
 
        { "subscribe",  NULL, PT_NORMAL, 0 },
85
 
        { "close",      NULL, PT_NORMAL, 0 },
86
 
        { NULL }
87
 
};
88
 
 
89
 
enum
90
 
{
91
71
        COL_FEED,       /* NewsFeed* */
92
72
        COL_SEARCH,     /* Search column */
93
73
        COL_TOGGLE,     /* enabled? */
368
348
        if (feed == NULL || feed->address == NULL) return;
369
349
 
370
350
        gtk_selection_data_set (selection_data,
371
 
                                selection_data->target,
 
351
                                gtk_selection_data_get_target (selection_data),
372
352
                                8,
373
353
                                (const guchar*) feed->address,
374
354
                                strlen (feed->address));
516
496
        priv = dialog->priv;
517
497
 
518
498
        ephy_dialog_construct (EPHY_DIALOG (edialog),
519
 
                               properties,
520
499
                               SHARE_DIR "/ui/rss-ui.ui",
521
500
                               "rss_ui",
522
501
                               GETTEXT_PACKAGE);
523
502
 
524
503
        ephy_dialog_get_controls (edialog,
525
 
                                  properties[PROP_DIALOG].id, &priv->dialog,
526
 
                                  properties[PROP_TITLE].id, &priv->title,
527
 
                                  properties[PROP_FEEDS].id, &priv->treeview,
528
 
                                  properties[PROP_SUBSCRIBE].id, &priv->subscribe,
529
 
                                  properties[PROP_CLOSE].id, &priv->close,
 
504
                                  "rss_ui", &priv->dialog,
 
505
                                  "title", &priv->title,
 
506
                                  "feeds", &priv->treeview,
 
507
                                  "subscribe", &priv->subscribe,
 
508
                                  "close", &priv->close,
530
509
                                  NULL);
531
510
 
532
511
        g_object_get (object,