mirror of
https://github.com/varun-r-mallya/sysprof.git
synced 2026-02-10 07:00:53 +00:00
Return NULL if nothing is selected.
Fri Mar 25 21:25:31 2005 Søren Sandmann <sandmann@redhat.com> * sysprof.c (get_current_object): Return NULL if nothing is selected.
This commit is contained in:
committed by
Søren Sandmann Pedersen
parent
27934e057c
commit
e9bd305866
@ -1,3 +1,8 @@
|
|||||||
|
Fri Mar 25 21:25:31 2005 Søren Sandmann <sandmann@redhat.com>
|
||||||
|
|
||||||
|
* sysprof.c (get_current_object): Return NULL if nothing is
|
||||||
|
selected.
|
||||||
|
|
||||||
Fri Mar 25 20:54:08 2005 Søren Sandmann <sandmann@redhat.com>
|
Fri Mar 25 20:54:08 2005 Søren Sandmann <sandmann@redhat.com>
|
||||||
|
|
||||||
* TODO: More updates
|
* TODO: More updates
|
||||||
|
|||||||
6
TODO
6
TODO
@ -35,9 +35,6 @@
|
|||||||
|
|
||||||
- hook up menu items view/start etc (or possibly get rid of them or move them)
|
- hook up menu items view/start etc (or possibly get rid of them or move them)
|
||||||
|
|
||||||
- crashes when you ctrl-click the selected item in the top left pane
|
|
||||||
<ian__> ssp: looks like it doesn't handle the none-selected case
|
|
||||||
|
|
||||||
- Move "samples" label to the toolbar, then get rid of statusbar.
|
- Move "samples" label to the toolbar, then get rid of statusbar.
|
||||||
|
|
||||||
- consider caching [filename => bin_file]
|
- consider caching [filename => bin_file]
|
||||||
@ -73,6 +70,9 @@
|
|||||||
|
|
||||||
DONE:
|
DONE:
|
||||||
|
|
||||||
|
- crashes when you ctrl-click the selected item in the top left pane
|
||||||
|
<ian__> ssp: looks like it doesn't handle the none-selected case
|
||||||
|
|
||||||
- loading and saving
|
- loading and saving
|
||||||
|
|
||||||
- consider making ProfileObject more of an object.
|
- consider making ProfileObject more of an object.
|
||||||
|
|||||||
18
sysprof.c
18
sysprof.c
@ -675,13 +675,17 @@ get_current_object (Application *app)
|
|||||||
|
|
||||||
selection = gtk_tree_view_get_selection (app->object_view);
|
selection = gtk_tree_view_get_selection (app->object_view);
|
||||||
|
|
||||||
gtk_tree_selection_get_selected (selection, &model, &selected);
|
if (gtk_tree_selection_get_selected (selection, &model, &selected))
|
||||||
|
{
|
||||||
gtk_tree_model_get (model, &selected,
|
gtk_tree_model_get (model, &selected,
|
||||||
OBJECT_OBJECT, &object,
|
OBJECT_OBJECT, &object,
|
||||||
-1);
|
-1);
|
||||||
|
return object;
|
||||||
return object;
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
return NULL;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
static void
|
static void
|
||||||
|
|||||||
Reference in New Issue
Block a user