window: Instrument some functions
This will help in debugging.
This commit is contained in:
parent
961b41a291
commit
1d8faa2a73
1 changed files with 8 additions and 0 deletions
|
@ -229,6 +229,8 @@ remove_all_custom_widgets (CcWindow *self)
|
||||||
GtkWidget *widget;
|
GtkWidget *widget;
|
||||||
guint i;
|
guint i;
|
||||||
|
|
||||||
|
CC_ENTRY;
|
||||||
|
|
||||||
/* remove from the header */
|
/* remove from the header */
|
||||||
for (i = 0; i < self->custom_widgets->len; i++)
|
for (i = 0; i < self->custom_widgets->len; i++)
|
||||||
{
|
{
|
||||||
|
@ -236,6 +238,8 @@ remove_all_custom_widgets (CcWindow *self)
|
||||||
gtk_container_remove (GTK_CONTAINER (self->top_right_box), widget);
|
gtk_container_remove (GTK_CONTAINER (self->top_right_box), widget);
|
||||||
}
|
}
|
||||||
g_ptr_array_set_size (self->custom_widgets, 0);
|
g_ptr_array_set_size (self->custom_widgets, 0);
|
||||||
|
|
||||||
|
CC_EXIT;
|
||||||
}
|
}
|
||||||
|
|
||||||
static void
|
static void
|
||||||
|
@ -688,11 +692,15 @@ cc_window_embed_widget_in_header (CcShell *shell,
|
||||||
{
|
{
|
||||||
CcWindow *self = CC_WINDOW (shell);
|
CcWindow *self = CC_WINDOW (shell);
|
||||||
|
|
||||||
|
CC_ENTRY;
|
||||||
|
|
||||||
/* add to header */
|
/* add to header */
|
||||||
gtk_box_pack_end (GTK_BOX (self->top_right_box), widget, FALSE, FALSE, 0);
|
gtk_box_pack_end (GTK_BOX (self->top_right_box), widget, FALSE, FALSE, 0);
|
||||||
g_ptr_array_add (self->custom_widgets, g_object_ref (widget));
|
g_ptr_array_add (self->custom_widgets, g_object_ref (widget));
|
||||||
|
|
||||||
gtk_size_group_add_widget (self->header_sizegroup, widget);
|
gtk_size_group_add_widget (self->header_sizegroup, widget);
|
||||||
|
|
||||||
|
CC_EXIT;
|
||||||
}
|
}
|
||||||
|
|
||||||
static GtkWidget *
|
static GtkWidget *
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue