mirror of
https://github.com/varun-r-mallya/sysprof.git
synced 2025-12-31 20:36:25 +00:00
+2005-11-03 Soren Sandmann <sandmann@redhat.com>
+ + * configure.ac: Make the message about the kernel source package + more informative. Code from Kjetil Torgrim Homme. + + * sysprof.c (on_start_toggled): Only delete the data if the + profiling can actually be started. +
This commit is contained in:
13
sysprof.c
13
sysprof.c
@ -190,8 +190,9 @@ update_sensitivity (Application *app)
|
||||
g_assert_not_reached();
|
||||
break;
|
||||
}
|
||||
|
||||
gtk_toggle_tool_button_set_active (GTK_TOGGLE_TOOL_BUTTON (active_radio_button), TRUE);
|
||||
|
||||
gtk_toggle_tool_button_set_active (
|
||||
GTK_TOGGLE_TOOL_BUTTON (active_radio_button), TRUE);
|
||||
|
||||
/* "profile" widgets */
|
||||
gtk_widget_set_sensitive (GTK_WIDGET (app->profile_button),
|
||||
@ -333,12 +334,12 @@ static void
|
||||
on_start_toggled (GtkWidget *widget, gpointer data)
|
||||
{
|
||||
Application *app = data;
|
||||
|
||||
|
||||
if (!gtk_toggle_tool_button_get_active (
|
||||
GTK_TOGGLE_TOOL_BUTTON (app->start_button)))
|
||||
{
|
||||
return;
|
||||
|
||||
delete_data (app);
|
||||
}
|
||||
|
||||
/* FIXME: get the real error message */
|
||||
if (!collector_start (app->collector, NULL))
|
||||
@ -353,6 +354,8 @@ on_start_toggled (GtkWidget *widget, gpointer data)
|
||||
}
|
||||
else
|
||||
{
|
||||
delete_data (app);
|
||||
|
||||
app->state = PROFILING;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user