| 94 /****************************************************************************** |
94 /****************************************************************************** |
| 95 * GObject Implementation |
95 * GObject Implementation |
| 96 *****************************************************************************/ |
96 *****************************************************************************/ |
| 97 static void |
97 static void |
| 98 pidgin_notification_list_init(PidginNotificationList *list) { |
98 pidgin_notification_list_init(PidginNotificationList *list) { |
| 99 PurpleNotificationManager *manager = NULL; |
|
| 100 GListModel *model = NULL; |
|
| 101 |
|
| 102 gtk_widget_init_template(GTK_WIDGET(list)); |
99 gtk_widget_init_template(GTK_WIDGET(list)); |
| 103 |
100 |
| 104 manager = purple_notification_manager_get_default(); |
101 gtk_list_box_bind_model(GTK_LIST_BOX(list->list_box), |
| 105 model = purple_notification_manager_get_model(manager); |
102 purple_notification_manager_get_default_as_model(), |
| 106 |
|
| 107 gtk_list_box_bind_model(GTK_LIST_BOX(list->list_box), model, |
|
| 108 pidgin_notification_list_create_widget_func, |
103 pidgin_notification_list_create_widget_func, |
| 109 list, NULL); |
104 list, NULL); |
| 110 } |
105 } |
| 111 |
106 |
| 112 static void |
107 static void |