~ubuntu-branches/ubuntu/trusty/rhythmbox/trusty-proposed

« back to all changes in this revision

Viewing changes to sources/rb-display-page-model.c

  • Committer: Package Import Robot
  • Author(s): Michael Biebl
  • Date: 2012-06-10 16:19:59 UTC
  • mto: (1.3.2)
  • mto: This revision was merged to the branch mainline in revision 32.
  • Revision ID: package-import@ubuntu.com-20120610161959-3wr8avyq3he0uz68
Tags: upstream-2.97
ImportĀ upstreamĀ versionĀ 2.97

Show diffs side-by-side

added added

removed removed

Lines of Context:
70
70
enum
71
71
{
72
72
        DROP_RECEIVED,
 
73
        PAGE_INSERTED,
73
74
        LAST_SIGNAL
74
75
};
75
76
 
670
671
                                           RB_DISPLAY_PAGE_MODEL_COLUMN_PLAYING, FALSE,
671
672
                                           RB_DISPLAY_PAGE_MODEL_COLUMN_PAGE, page,
672
673
                                           -1);
 
674
        g_signal_emit (G_OBJECT (page_model), rb_display_page_model_signals[PAGE_INSERTED], 0, page, &iter);
673
675
 
674
676
        g_signal_connect_object (page, "notify::name", G_CALLBACK (page_notify_cb), page_model, 0);
675
677
        g_signal_connect_object (page, "notify::visibility", G_CALLBACK (page_notify_cb), page_model, 0);
872
874
                              3,
873
875
                              RB_TYPE_DISPLAY_PAGE, G_TYPE_INT, G_TYPE_POINTER);
874
876
 
 
877
        /**
 
878
         * RBDisplayPageModel::page-inserted:
 
879
         * @model: the #RBDisplayPageModel
 
880
         * @page: the #RBDisplayPage that was inserted
 
881
         * @iter: a #GtkTreeIter indicating the page position
 
882
         *
 
883
         * Emitted when a new page is inserted into the model.
 
884
         * Use this instead of GtkTreeModel::row-inserted as this
 
885
         * doesn't get complicated by visibility filtering.
 
886
         */
 
887
        rb_display_page_model_signals[PAGE_INSERTED] =
 
888
                g_signal_new ("page-inserted",
 
889
                              G_OBJECT_CLASS_TYPE (object_class),
 
890
                              G_SIGNAL_RUN_LAST,
 
891
                              G_STRUCT_OFFSET (RBDisplayPageModelClass, page_inserted),
 
892
                              NULL, NULL,
 
893
                              NULL,
 
894
                              G_TYPE_NONE,
 
895
                              2,
 
896
                              RB_TYPE_DISPLAY_PAGE, GTK_TYPE_TREE_ITER);
 
897
 
875
898
        if (!drag_target_list) {
876
899
                drag_target_list = gtk_target_list_new (dnd_targets, G_N_ELEMENTS (dnd_targets));
877
900
        }