Kaydet (Commit) 68c1d16e authored tarafından Hakan Dündar's avatar Hakan Dündar

Processes tab customizations menu simplifications

üst 0d253e5b
......@@ -44,7 +44,7 @@ def processes_menu_customizations_gui_func():
# ********************** Define object names for Processes tab customizations popover **********************
global popover2101p
global checkbutton2101p, checkbutton2102p, checkbutton2103p
global button2101p, button2102p, button2103p
global button2102p, button2103p
global checkbutton2106p, checkbutton2107p, checkbutton2108p, checkbutton2109p, checkbutton2110p, checkbutton2111p, checkbutton2112p, checkbutton2113p
global checkbutton2114p, checkbutton2115p, checkbutton2116p, checkbutton2117p, checkbutton2118p, checkbutton2119p, checkbutton2120p, checkbutton2121p
global checkbutton2122p, checkbutton2123p
......@@ -55,7 +55,6 @@ def processes_menu_customizations_gui_func():
checkbutton2101p = builder.get_object('checkbutton2101p')
checkbutton2102p = builder.get_object('checkbutton2102p')
checkbutton2103p = builder.get_object('checkbutton2103p')
button2101p = builder.get_object('button2101p')
button2102p = builder.get_object('button2102p')
button2103p = builder.get_object('button2103p')
checkbutton2106p = builder.get_object('checkbutton2106p')
......@@ -85,9 +84,6 @@ def processes_menu_customizations_gui_func():
combobox2107p = builder.get_object('combobox2107p')
# ********************** Define object functions for Processes tab customizations popover Common GUI Objects **********************
def on_button2101p_clicked(widget): # "Process tree information from 'ps --forest -Ao pid,uid,ppid,cmd' command output" button
process = subprocess.Popen("x-terminal-emulator -e /bin/bash -c \'ps --forest -Ao pid,uid,ppid,cmd; exec bash\'", stdout=subprocess.PIPE, stderr=None, shell=True)
def on_button2102p_clicked(widget): # "Reset All" button
Config.config_default_processes_func()
Config.config_save_func()
......@@ -197,7 +193,6 @@ def processes_menu_customizations_gui_func():
Config.config_save_func()
# ********************** Connect signals to GUI objects for Processes tab customizations popover Common GUI Objects **********************
button2101p.connect("clicked", on_button2101p_clicked)
button2102p.connect("clicked", on_button2102p_clicked)
# ********************** Connect signals to GUI objects for Processes tab customizations popover View Tab **********************
button2103p.connect("clicked", on_button2103p_clicked)
......
......@@ -5,7 +5,7 @@
<object class="GtkPopover" id="popover2101p">
<property name="can-focus">False</property>
<child>
<!-- n-columns=1 n-rows=6 -->
<!-- n-columns=1 n-rows=4 -->
<object class="GtkGrid">
<property name="visible">True</property>
<property name="can-focus">False</property>
......@@ -27,59 +27,6 @@
<property name="top-attach">0</property>
</packing>
</child>
<child>
<!-- n-columns=3 n-rows=1 -->
<object class="GtkGrid">
<property name="visible">True</property>
<property name="can-focus">False</property>
<property name="column-spacing">4</property>
<child>
<object class="GtkLabel">
<property name="visible">True</property>
<property name="can-focus">False</property>
<property name="label" translatable="yes">Process Tree on Commandline:</property>
</object>
<packing>
<property name="left-attach">1</property>
<property name="top-attach">0</property>
</packing>
</child>
<child>
<object class="GtkButton" id="button2101p">
<property name="visible">True</property>
<property name="can-focus">True</property>
<property name="receives-default">True</property>
<property name="tooltip-text" translatable="yes">Process tree information from 'ps --forest -Ao pid,uid,ppid,cmd' command output</property>
<child>
<object class="GtkImage">
<property name="visible">True</property>
<property name="can-focus">False</property>
<property name="icon-name">system-monitoring-center-info-about-symbolic</property>
</object>
</child>
</object>
<packing>
<property name="left-attach">2</property>
<property name="top-attach">0</property>
</packing>
</child>
<child>
<object class="GtkImage">
<property name="visible">True</property>
<property name="can-focus">False</property>
<property name="icon-name">system-monitoring-center-settings-symbolic</property>
</object>
<packing>
<property name="left-attach">0</property>
<property name="top-attach">0</property>
</packing>
</child>
</object>
<packing>
<property name="left-attach">0</property>
<property name="top-attach">1</property>
</packing>
</child>
<child>
<object class="GtkNotebook">
<property name="visible">True</property>
......@@ -982,7 +929,7 @@
</object>
<packing>
<property name="left-attach">0</property>
<property name="top-attach">3</property>
<property name="top-attach">1</property>
</packing>
</child>
<child>
......@@ -1026,7 +973,7 @@
</object>
<packing>
<property name="left-attach">0</property>
<property name="top-attach">5</property>
<property name="top-attach">3</property>
</packing>
</child>
<child>
......@@ -1041,18 +988,6 @@
<property name="top-attach">2</property>
</packing>
</child>
<child>
<object class="GtkSeparator">
<property name="visible">True</property>
<property name="can-focus">False</property>
<property name="margin-top">8</property>
<property name="margin-bottom">8</property>
</object>
<packing>
<property name="left-attach">0</property>
<property name="top-attach">4</property>
</packing>
</child>
</object>
</child>
</object>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment