Messages in this thread | | | Subject | Re: [PATCH] kernel-shark: Allow unsetting of all CPUs in filter | From | Steven Rostedt <> | Date | Thu, 15 Nov 2012 18:11:40 -0500 |
| |
On Thu, 2012-11-15 at 14:28 -0800, Vaibhav Nagarnaik wrote:
> + else > + cpu_clear(cpu_helper->cpu_mask, cpu); > + > + cpu_helper->allcpus = cpu_allset(cpu_helper->cpu_mask, > + cpu_helper->cpus); > + /* > + * Deactivate sending 'toggled' signal for "All CPUs" > + * while we adjust its state > + */ > + g_signal_handlers_block_by_func(GTK_TOGGLE_BUTTON(cpu_helper->buttons[cpu_helper->cpus]), > + G_CALLBACK (cpu_toggle), > + (gpointer) cpu_helper);
Kind of hacky, but it works.
Applied, Thanks!
-- Steve
> > gtk_toggle_button_set_active(GTK_TOGGLE_BUTTON(cpu_helper->buttons[cpu_helper->cpus]), > - FALSE); > + cpu_helper->allcpus); > + > + g_signal_handlers_unblock_by_func(GTK_TOGGLE_BUTTON(cpu_helper->buttons[cpu_helper->cpus]), > + G_CALLBACK (cpu_toggle), > + (gpointer) cpu_helper); > } > > /**
| |