From 39320e6e7bfe3278598278398389854bd721f756 Mon Sep 17 00:00:00 2001 From: Stefano Zacchiroli Date: Thu, 9 Jun 2005 07:35:30 +0000 Subject: [PATCH] simplified cicBrowser: whelp bar is now always visible --- helm/matita/matita.glade | 144 ++++++++-------------------------- helm/matita/matitaGui.ml | 3 +- helm/matita/matitaMathView.ml | 12 +-- 3 files changed, 34 insertions(+), 125 deletions(-) diff --git a/helm/matita/matita.glade b/helm/matita/matita.glade index 690e17749..9444e6a93 100644 --- a/helm/matita/matita.glade +++ b/helm/matita/matita.glade @@ -122,14 +122,12 @@ Copyright (C) 2005, True - new browser win - True True GTK_RELIEF_NONE - False + True - + True gtk-new 4 @@ -150,69 +148,19 @@ Copyright (C) 2005, True - history back - True True GTK_RELIEF_NONE True - + True + gtk-go-back + 4 0.5 0.5 - 0 - 0 - 0 - 0 - 0 - 0 - - - - True - False - 2 - - - - True - gtk-go-back - 4 - 0.5 - 0.5 - 0 - 0 - - - 0 - False - False - - - - - - True - - True - False - GTK_JUSTIFY_LEFT - False - False - 0.5 - 0.5 - 0 - 0 - - - 0 - False - False - - - - + 0 + 0 @@ -226,14 +174,12 @@ Copyright (C) 2005, True - history forward - True True GTK_RELIEF_NONE True - + True gtk-go-forward 4 @@ -311,7 +257,7 @@ Copyright (C) 2005, True gtk-jump-to - 4 + 2 0.5 0.5 0 @@ -325,62 +271,19 @@ Copyright (C) 2005, - - - - - - True - 0.5 - 0.5 - 0 - 0 - - - 0 - False - False - - - - - + True - True - GTK_RELIEF_NONE - True - False - False + False + 0 - - True - False - 0 - - - - True - GTK_ARROW_DOWN - GTK_SHADOW_NONE - 0.5 - 0.5 - 0 - 0 - - - 0 - True - True - - - + 0 - False - False + True + True @@ -400,6 +303,21 @@ Copyright (C) 2005, False 6 + + + True + 0.5 + 0.5 + 0 + 0 + + + 0 + False + True + + + True @@ -420,7 +338,7 @@ Copyright (C) 2005, - + True False 0 diff --git a/helm/matita/matitaGui.ml b/helm/matita/matitaGui.ml index a17b9bfb1..08f097086 100644 --- a/helm/matita/matitaGui.ml +++ b/helm/matita/matitaGui.ml @@ -289,8 +289,7 @@ class gui () = initializer self#check_widgets (); let combo_widget = combo#coerce in - browserHBox#add combo_widget; - browserHBox#reorder_child combo_widget ~pos:6 + uriHBox#add combo_widget method browserUri = combo end diff --git a/helm/matita/matitaMathView.ml b/helm/matita/matitaMathView.ml index 225738d58..75541ed9d 100644 --- a/helm/matita/matitaMathView.ml +++ b/helm/matita/matitaMathView.ml @@ -359,7 +359,7 @@ class cicBrowser_impl ~(history:MatitaTypes.mathViewer_entry MatitaMisc.history) initializer activate_combo_query "" "locate"; - win#comboVbox#add (combo :> GObj.widget); + win#whelpBarComboVbox#add combo#coerce; let start_query () = let query = String.lowercase (List.nth queries combo#active) in let input = win#queryInputText#text in @@ -368,16 +368,8 @@ class cicBrowser_impl ~(history:MatitaTypes.mathViewer_entry MatitaMisc.history) in ignore(win#queryInputText#connect#activate ~callback:start_query); ignore(combo#connect#changed ~callback:start_query); - win#whelpImage2#set_file "icons/whelp.png"; - win#whelpBarToggleButton#set_active false; - win#whelpBarBox#misc#hide (); + win#whelpBarImage#set_file (MatitaMisc.image_path "whelp.png"); win#mathOrListNotebook#set_show_tabs false; - MatitaGtkMisc.connect_toggle_button win#whelpBarToggleButton - (fun () -> - if win#whelpBarToggleButton#active then - win#whelpBarBox#misc#show () - else - win#whelpBarBox#misc#hide ()); win#browserForwardButton#misc#set_sensitive false; win#browserBackButton#misc#set_sensitive false; -- 2.39.2