mirror of
https://github.com/varun-r-mallya/sysprof.git
synced 2026-02-07 21:50:54 +00:00
Delete trailing whitespace
This commit is contained in:
106
sysprof.c
106
sysprof.c
@ -1056,14 +1056,14 @@ compute_text_width (GtkTreeView *view,
|
|||||||
GtkTreeIter *iter,
|
GtkTreeIter *iter,
|
||||||
gpointer data)
|
gpointer data)
|
||||||
{
|
{
|
||||||
int *width = data;
|
int *width = data;
|
||||||
char *name;
|
char *name;
|
||||||
|
|
||||||
get_data (view, iter, &name, NULL, NULL);
|
get_data (view, iter, &name, NULL, NULL);
|
||||||
|
|
||||||
*width = MAX (g_utf8_strlen (name, -1) + get_indent (path), *width);
|
*width = MAX (g_utf8_strlen (name, -1) + get_indent (path), *width);
|
||||||
|
|
||||||
g_free (name);
|
g_free (name);
|
||||||
}
|
}
|
||||||
|
|
||||||
typedef struct
|
typedef struct
|
||||||
@ -1371,32 +1371,32 @@ gather_widgets (Application *app)
|
|||||||
} WidgetInfo;
|
} WidgetInfo;
|
||||||
|
|
||||||
const WidgetInfo widgets[] =
|
const WidgetInfo widgets[] =
|
||||||
{
|
{
|
||||||
{ &app->main_window, "main_window" },
|
{ &app->main_window, "main_window" },
|
||||||
{ &app->start_button, "start_button" },
|
{ &app->start_button, "start_button" },
|
||||||
{ &app->profile_button, "profile_button" },
|
{ &app->profile_button, "profile_button" },
|
||||||
{ &app->reset_button, "reset_button" },
|
{ &app->reset_button, "reset_button" },
|
||||||
{ &app->save_as_button, "save_as_button" },
|
{ &app->save_as_button, "save_as_button" },
|
||||||
{ &app->dummy_button, "dummy_button" },
|
{ &app->dummy_button, "dummy_button" },
|
||||||
{ &app->samples_label, "samples_label" },
|
{ &app->samples_label, "samples_label" },
|
||||||
{ &app->samples_hbox, "samples_hbox" },
|
{ &app->samples_hbox, "samples_hbox" },
|
||||||
{ &app->start_item, "start_item" },
|
{ &app->start_item, "start_item" },
|
||||||
{ &app->profile_item, "profile_item" },
|
{ &app->profile_item, "profile_item" },
|
||||||
{ &app->reset_item, "reset_item" },
|
{ &app->reset_item, "reset_item" },
|
||||||
{ &app->open_item, "open_item" },
|
{ &app->open_item, "open_item" },
|
||||||
{ &app->save_as_item, "save_as_item" },
|
{ &app->save_as_item, "save_as_item" },
|
||||||
{ &app->screenshot_item, "screenshot_item" },
|
{ &app->screenshot_item, "screenshot_item" },
|
||||||
{ &app->quit_item, "quit" },
|
{ &app->quit_item, "quit" },
|
||||||
{ &app->about_item, "about" },
|
{ &app->about_item, "about" },
|
||||||
{ &app->object_view, "object_view" },
|
{ &app->object_view, "object_view" },
|
||||||
{ &app->callers_view, "callers_view" },
|
{ &app->callers_view, "callers_view" },
|
||||||
{ &app->descendants_view, "descendants_view" },
|
{ &app->descendants_view, "descendants_view" },
|
||||||
{ &app->screenshot_window, "screenshot_window" },
|
{ &app->screenshot_window, "screenshot_window" },
|
||||||
{ &app->screenshot_textview, "screenshot_textview" },
|
{ &app->screenshot_textview, "screenshot_textview" },
|
||||||
{ &app->screenshot_close_button, "screenshot_close_button" },
|
{ &app->screenshot_close_button, "screenshot_close_button" },
|
||||||
{ &app->vpaned, "vpaned" },
|
{ &app->vpaned, "vpaned" },
|
||||||
{ &app->hpaned, "hpaned" },
|
{ &app->hpaned, "hpaned" },
|
||||||
};
|
};
|
||||||
|
|
||||||
GladeXML *xml = glade_xml_new (GLADE_FILE, NULL, NULL);
|
GladeXML *xml = glade_xml_new (GLADE_FILE, NULL, NULL);
|
||||||
int i;
|
int i;
|
||||||
@ -1425,28 +1425,28 @@ connect_signals (Application *app)
|
|||||||
} SignalInfo;
|
} SignalInfo;
|
||||||
|
|
||||||
const SignalInfo signals[] =
|
const SignalInfo signals[] =
|
||||||
{
|
{
|
||||||
{ app->main_window, "delete_event", on_delete, NULL },
|
{ app->main_window, "delete_event", on_delete, NULL },
|
||||||
{ app->start_button, "toggled", on_start_toggled, app },
|
{ app->start_button, "toggled", on_start_toggled, app },
|
||||||
{ app->profile_button, "toggled", on_profile_toggled, app },
|
{ app->profile_button, "toggled", on_profile_toggled, app },
|
||||||
{ app->reset_button, "clicked", on_reset_clicked, app },
|
{ app->reset_button, "clicked", on_reset_clicked, app },
|
||||||
{ app->save_as_button, "clicked", on_save_as_clicked, app },
|
{ app->save_as_button, "clicked", on_save_as_clicked, app },
|
||||||
{ app->start_item, "activate", on_menu_item_activated, app->start_button },
|
{ app->start_item, "activate", on_menu_item_activated, app->start_button },
|
||||||
{ app->profile_item, "activate", on_menu_item_activated, app->profile_button },
|
{ app->profile_item, "activate", on_menu_item_activated, app->profile_button },
|
||||||
{ app->reset_item, "activate", on_reset_clicked, app },
|
{ app->reset_item, "activate", on_reset_clicked, app },
|
||||||
{ app->open_item, "activate", on_open_clicked, app },
|
{ app->open_item, "activate", on_open_clicked, app },
|
||||||
{ app->save_as_item, "activate", on_save_as_clicked, app },
|
{ app->save_as_item, "activate", on_save_as_clicked, app },
|
||||||
{ app->screenshot_item, "activate", on_screenshot_activated, app },
|
{ app->screenshot_item, "activate", on_screenshot_activated, app },
|
||||||
{ app->quit_item, "activate", on_delete, NULL },
|
{ app->quit_item, "activate", on_delete, NULL },
|
||||||
{ app->about_item, "activate", on_about_activated, app },
|
{ app->about_item, "activate", on_about_activated, app },
|
||||||
{ app->object_selection, "changed", on_object_selection_changed, app },
|
{ app->object_selection, "changed", on_object_selection_changed, app },
|
||||||
{ app->callers_view, "row-activated", on_callers_row_activated, app },
|
{ app->callers_view, "row-activated", on_callers_row_activated, app },
|
||||||
{ app->descendants_view, "row-activated", on_descendants_row_activated, app },
|
{ app->descendants_view, "row-activated", on_descendants_row_activated, app },
|
||||||
{ app->descendants_view, "row-expanded", on_descendants_row_expanded_or_collapsed, app },
|
{ app->descendants_view, "row-expanded", on_descendants_row_expanded_or_collapsed, app },
|
||||||
{ app->descendants_view, "row-collapsed", on_descendants_row_expanded_or_collapsed, app },
|
{ app->descendants_view, "row-collapsed", on_descendants_row_expanded_or_collapsed, app },
|
||||||
{ app->screenshot_window, "delete_event", on_screenshot_window_delete, app },
|
{ app->screenshot_window, "delete_event", on_screenshot_window_delete, app },
|
||||||
{ app->screenshot_close_button, "clicked", on_screenshot_close_button_clicked, app },
|
{ app->screenshot_close_button, "clicked", on_screenshot_close_button_clicked, app },
|
||||||
};
|
};
|
||||||
|
|
||||||
int i;
|
int i;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user