fixed bug #192

parent 2a9044dd
......@@ -4,6 +4,8 @@ Overview of changes in v9.2 "Galvanize"
* #191 (make):
gtk-update-icon-cache was not properly invoked after make install
* #192 (custom prompt builder):
inserting prompt parts from GtkComboBoxes did not work
=== General ===
......
......@@ -135,7 +135,16 @@
<col id="0" translatable="yes">Uptime</col>
</row>
<row>
<col id="0" translatable="yes">PS2 PS3 PS4</col>
<col id="0" translatable="yes">Misc. Elements</col>
</row>
<row>
<col id="0" translatable="yes">PS2</col>
</row>
<row>
<col id="0" translatable="yes">PS3</col>
</row>
<row>
<col id="0" translatable="yes">PS4</col>
</row>
</data>
</object>
......
......@@ -252,6 +252,9 @@ symbolic_colors_p_c = {
7 : "${esepacolor}",
8 : "${eupcolor}",
9 : "${epscolor}",
10 : "${eps2color}",
11 : "${eps3color}",
12 : "${eps4color}",
}
symbolic_colors_ps1 = {
......@@ -264,4 +267,7 @@ symbolic_colors_ps1 = {
7 : "${sepacolor}",
8 : "${upcolor}",
9 : "${pscolor}",
10 : "${ps2color}",
11 : "${ps3color}",
12 : "${ps4color}",
}
......@@ -75,11 +75,7 @@ class PromptBuilder(object):
def prompt_add_combo(widget, dict_p_c, dict_ps1):
if widget.get_active() != 0:
if self.active_buffer == "P_C":
text = dict_p_c[widget.get_active()]
elif self.active_buffer == "PS1":
text = dict_ps1[widget.get_active()]
prompt_add(widget, text)
prompt_add(widget, dict_p_c[widget.get_active()], dict_ps1[widget.get_active()])
widget.set_active(0)
######################## GtkButtons ################################################
......
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