Code

move the remove button to where it makes more sense
authorbuliabyak <buliabyak@users.sourceforge.net>
Wed, 5 Sep 2007 17:29:43 +0000 (17:29 +0000)
committerbuliabyak <buliabyak@users.sourceforge.net>
Wed, 5 Sep 2007 17:29:43 +0000 (17:29 +0000)
src/ui/dialog/livepatheffect-editor.cpp

index 4a1c82652bca85a00a13982bf620bbf480a968a8..363f2b60671d898af512a7a44a043419a43f283c 100644 (file)
@@ -86,10 +86,11 @@ LivePathEffectEditor::LivePathEffectEditor(Behavior::BehaviorFactory behavior_fa
 \r
     effectapplication_vbox.pack_start(combo_effecttype, true, true);\r
     effectapplication_vbox.pack_start(button_apply, true, true);\r
-    effectapplication_vbox.pack_start(button_remove, true, true);\r
     effectapplication_frame.add(effectapplication_vbox);\r
 \r
     effectcontrol_vbox.pack_start(explain_label, true, true);\r
+    effectcontrol_vbox.pack_end(button_remove, true, true);\r
+               button_remove.hide();\r
     effectcontrol_frame.add(effectcontrol_vbox);\r
 \r
     vbox->pack_start(effectapplication_frame, true, true);\r
@@ -136,6 +137,7 @@ LivePathEffectEditor::showParams(LivePathEffect::Effect* effect)
     if (effectwidget) {\r
         effectcontrol_vbox.pack_start(*effectwidget, true, true);\r
     }\r
+    button_remove.show();\r
 \r
     effectcontrol_vbox.show_all_children();\r
     // fixme: do resizing of dialog \r
@@ -150,6 +152,7 @@ LivePathEffectEditor::showText(Glib::ustring const &str)
     }\r
 \r
     explain_label.set_label(str);\r
+    button_remove.hide();\r
 \r
     // fixme: do resizing of dialog ?\r
 }\r