mirror of
https://github.com/varun-r-mallya/sysprof.git
synced 2025-12-31 20:36:25 +00:00
*** empty log message ***
This commit is contained in:
23
sysprof.c
23
sysprof.c
@ -394,12 +394,6 @@ sorry (GtkWidget *parent_window,
|
||||
gtk_widget_destroy (dialog);
|
||||
}
|
||||
|
||||
static void
|
||||
on_open_clicked (gpointer widget, gpointer data)
|
||||
{
|
||||
sorry (NULL, "Open is not implemented yet. (Fortunately, neither is saving),");
|
||||
}
|
||||
|
||||
static void
|
||||
on_reset_clicked (gpointer widget, gpointer data)
|
||||
{
|
||||
@ -420,7 +414,8 @@ on_save_as_clicked (gpointer widget, gpointer data)
|
||||
|
||||
ensure_profile (app);
|
||||
|
||||
profile_save (app->profile, NULL, NULL);
|
||||
if (!profile_save (app->profile, NULL))
|
||||
sorry (NULL, "Couldn't save\n");
|
||||
|
||||
#if 0
|
||||
sorry (NULL, "Saving profiles is not yet implemented.");
|
||||
@ -431,6 +426,12 @@ on_save_as_clicked (gpointer widget, gpointer data)
|
||||
/* FIXME */
|
||||
}
|
||||
|
||||
static void
|
||||
on_open_clicked (gpointer widget, gpointer data)
|
||||
{
|
||||
sorry (NULL, "Open is not implemented yet. (Fortunately, neither is saving),");
|
||||
}
|
||||
|
||||
static void
|
||||
on_delete (GtkWidget *window)
|
||||
{
|
||||
@ -869,13 +870,11 @@ main (int argc, char **argv)
|
||||
if (app->input_fd < 0)
|
||||
{
|
||||
disaster ("Can't open /proc/sysprof-trace. You need to insert\n"
|
||||
"the sysprof kernel module. As root type\n"
|
||||
"\n"
|
||||
" insmod sysprof-module.o\n"
|
||||
"\n"
|
||||
"or if you are using a 2.6 kernel:\n"
|
||||
"the sysprof kernel module. Type \n"
|
||||
"\n"
|
||||
" insmod sysprof-module.ko\n"
|
||||
"\n"
|
||||
"as root.\n"
|
||||
"\n");
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user