mirror of
https://github.com/varun-r-mallya/sysprof.git
synced 2026-02-11 15:40:53 +00:00
libsysprof-ui: start attaching profiler button to record
This commit is contained in:
@ -30,8 +30,8 @@
|
|||||||
|
|
||||||
typedef struct
|
typedef struct
|
||||||
{
|
{
|
||||||
SysprofProfiler *profiler;
|
SysprofProfiler *profiler;
|
||||||
SysprofModelFilter *process_filter;
|
SysprofModelFilter *process_filter;
|
||||||
|
|
||||||
/* Gtk template widgets */
|
/* Gtk template widgets */
|
||||||
GtkTreeModel *environment_model;
|
GtkTreeModel *environment_model;
|
||||||
@ -39,7 +39,7 @@ typedef struct
|
|||||||
GtkPopover *popover;
|
GtkPopover *popover;
|
||||||
GtkEntry *process_filter_entry;
|
GtkEntry *process_filter_entry;
|
||||||
GtkListBox *process_list_box;
|
GtkListBox *process_list_box;
|
||||||
SysprofProcessModel *process_model;
|
SysprofProcessModel *process_model;
|
||||||
GtkBox *processes_box;
|
GtkBox *processes_box;
|
||||||
GtkEntry *spawn_entry;
|
GtkEntry *spawn_entry;
|
||||||
GtkStack *stack;
|
GtkStack *stack;
|
||||||
@ -930,6 +930,4 @@ sysprof_profiler_menu_button_init (SysprofProfilerMenuButton *self)
|
|||||||
G_CALLBACK (sysprof_profiler_menu_button_env_key_editing_started),
|
G_CALLBACK (sysprof_profiler_menu_button_env_key_editing_started),
|
||||||
self,
|
self,
|
||||||
G_CONNECT_SWAPPED);
|
G_CONNECT_SWAPPED);
|
||||||
|
|
||||||
gtk_widget_set_sensitive (GTK_WIDGET (self), FALSE);
|
|
||||||
}
|
}
|
||||||
|
|||||||
@ -2,30 +2,10 @@
|
|||||||
<interface>
|
<interface>
|
||||||
<template class="SysprofProfilerMenuButton" parent="GtkMenuButton">
|
<template class="SysprofProfilerMenuButton" parent="GtkMenuButton">
|
||||||
<property name="popover">popover</property>
|
<property name="popover">popover</property>
|
||||||
<property name="width-request">150</property>
|
|
||||||
<child>
|
<child>
|
||||||
<object class="GtkBox">
|
<object class="GtkImage">
|
||||||
<property name="orientation">horizontal</property>
|
<property name="icon-name">pan-down-symbolic</property>
|
||||||
<property name="spacing">6</property>
|
|
||||||
<property name="visible">true</property>
|
<property name="visible">true</property>
|
||||||
<child>
|
|
||||||
<object class="GtkLabel" id="label">
|
|
||||||
<property name="ellipsize">end</property>
|
|
||||||
<property name="visible">true</property>
|
|
||||||
</object>
|
|
||||||
<packing>
|
|
||||||
<property name="expand">true</property>
|
|
||||||
</packing>
|
|
||||||
</child>
|
|
||||||
<child>
|
|
||||||
<object class="GtkImage">
|
|
||||||
<property name="icon-name">pan-down-symbolic</property>
|
|
||||||
<property name="visible">true</property>
|
|
||||||
<style>
|
|
||||||
<class name="dim-label"/>
|
|
||||||
</style>
|
|
||||||
</object>
|
|
||||||
</child>
|
|
||||||
</object>
|
</object>
|
||||||
</child>
|
</child>
|
||||||
</template>
|
</template>
|
||||||
@ -36,6 +16,12 @@
|
|||||||
<object class="GtkBox">
|
<object class="GtkBox">
|
||||||
<property name="orientation">vertical</property>
|
<property name="orientation">vertical</property>
|
||||||
<property name="visible">true</property>
|
<property name="visible">true</property>
|
||||||
|
<child>
|
||||||
|
<object class="GtkLabel" id="label">
|
||||||
|
<property name="xalign">0.0</property>
|
||||||
|
<property name="visible">true</property>
|
||||||
|
</object>
|
||||||
|
</child>
|
||||||
<child>
|
<child>
|
||||||
<object class="GtkStackSwitcher">
|
<object class="GtkStackSwitcher">
|
||||||
<property name="border-width">6</property>
|
<property name="border-width">6</property>
|
||||||
|
|||||||
@ -54,21 +54,30 @@
|
|||||||
</object>
|
</object>
|
||||||
</child>
|
</child>
|
||||||
<child>
|
<child>
|
||||||
<object class="GtkButton" id="record_button">
|
<object class="GtkBox">
|
||||||
<property name="label" translatable="yes" comments="Translators: This is a button.">_Record</property>
|
|
||||||
<property name="use-underline">true</property>
|
|
||||||
<property name="visible">true</property>
|
<property name="visible">true</property>
|
||||||
<property name="width-request">100</property>
|
|
||||||
<style>
|
<style>
|
||||||
<class name="suggested-action"/>
|
<class name="linked"/>
|
||||||
</style>
|
</style>
|
||||||
</object>
|
<child>
|
||||||
</child>
|
<object class="GtkButton" id="record_button">
|
||||||
<child>
|
<property name="label" translatable="yes" comments="Translators: This is a button.">_Record</property>
|
||||||
<object class="SysprofProfilerMenuButton" id="profiler_menu_button">
|
<property name="use-underline">true</property>
|
||||||
<property name="width-request">200</property>
|
<property name="visible">true</property>
|
||||||
<property name="visible">true</property>
|
<property name="width-request">100</property>
|
||||||
<property name="halign">start</property>
|
<style>
|
||||||
|
<class name="suggested-action"/>
|
||||||
|
</style>
|
||||||
|
</object>
|
||||||
|
</child>
|
||||||
|
<child>
|
||||||
|
<object class="SysprofProfilerMenuButton" id="profiler_menu_button">
|
||||||
|
<property name="visible">true</property>
|
||||||
|
<style>
|
||||||
|
<class name="suggested-action"/>
|
||||||
|
</style>
|
||||||
|
</object>
|
||||||
|
</child>
|
||||||
</object>
|
</object>
|
||||||
</child>
|
</child>
|
||||||
<child>
|
<child>
|
||||||
|
|||||||
Reference in New Issue
Block a user