1
0
Fork 0
mirror of https://gitlab.gnome.org/GNOME/calls.git synced 2024-12-04 20:07:36 +00:00

history-box: Add debug statement

This helps in debugging in debugging
why the slice list model rebuilds the whole list
when a single call gets added.

Part-of: <https://gitlab.gnome.org/GNOME/calls/-/merge_requests/755>
This commit is contained in:
Evangelos Ribeiro Tzaras 2024-09-05 21:37:01 +02:00
parent 9dfaac19cc
commit 03a50260ec
2 changed files with 4 additions and 0 deletions

View file

@ -401,6 +401,7 @@ calls_call_record_row_button_press_event (GtkGestureClick* controller,
GtkWidget *self) GtkWidget *self)
{ {
GdkEvent *event = gtk_event_controller_get_current_event (GTK_EVENT_CONTROLLER (controller)); GdkEvent *event = gtk_event_controller_get_current_event (GTK_EVENT_CONTROLLER (controller));
if (gdk_event_triggers_context_menu (event)) { if (gdk_event_triggers_context_menu (event)) {
context_menu (self, (GdkEvent *) event); context_menu (self, (GdkEvent *) event);
} }

View file

@ -121,6 +121,9 @@ create_row_cb (CallsCallRecord *record,
row_widget = GTK_WIDGET (calls_call_record_row_new (record)); row_widget = GTK_WIDGET (calls_call_record_row_new (record));
g_debug ("Created new row [%p] for record [%p]",
row_widget, record);
g_signal_connect (record, g_signal_connect (record,
"call-delete", "call-delete",
G_CALLBACK (delete_call_cb), G_CALLBACK (delete_call_cb),