* src/gramps_main.py (on_faq_activate): Switch Help->FAQ function

* src/gramps.glade: Remove FAQ window.
* doc/gramps-manual/C/cmdline.xml,
doc/gramps-manual/C/gramps-manual.xml,
doc/gramps-manual/C/custom.xml,
doc/gramps-manual/C/keybind.xml,
doc/gramps-manual/C/faq.xml,
doc/gramps-manual/C/legal.xml,
doc/gramps-manual/C/filtref.xml,
doc/gramps-manual/C/mainwin.xml,
doc/gramps-manual/C/getstart.xml,
doc/gramps-manual/C/usage.xml: Add copyright info to header.


svn: r2429
This commit is contained in:
Alex Roitman
2003-12-03 02:56:43 +00:00
parent 89e275878b
commit 4dc578fb36
12 changed files with 152 additions and 99 deletions

View File

@@ -8005,85 +8005,4 @@
</child>
</widget>
<widget class="GtkWindow" id="faq">
<property name="width_request">650</property>
<property name="height_request">400</property>
<property name="visible">True</property>
<property name="title" translatable="yes">FAQ - GRAMPS</property>
<property name="type">GTK_WINDOW_TOPLEVEL</property>
<property name="window_position">GTK_WIN_POS_NONE</property>
<property name="modal">False</property>
<property name="resizable">True</property>
<property name="destroy_with_parent">False</property>
<property name="icon">gramps.xpm</property>
<child>
<widget class="GtkVBox" id="vbox78">
<property name="visible">True</property>
<property name="homogeneous">False</property>
<property name="spacing">0</property>
<child>
<widget class="GtkScrolledWindow" id="scrolledwindow77">
<property name="border_width">6</property>
<property name="visible">True</property>
<property name="can_focus">True</property>
<property name="hscrollbar_policy">GTK_POLICY_AUTOMATIC</property>
<property name="vscrollbar_policy">GTK_POLICY_AUTOMATIC</property>
<property name="shadow_type">GTK_SHADOW_IN</property>
<property name="window_placement">GTK_CORNER_TOP_LEFT</property>
<child>
<widget class="GtkTextView" id="faq_view">
<property name="visible">True</property>
<property name="can_focus">True</property>
<property name="editable">False</property>
<property name="justification">GTK_JUSTIFY_LEFT</property>
<property name="wrap_mode">GTK_WRAP_NONE</property>
<property name="cursor_visible">True</property>
<property name="pixels_above_lines">0</property>
<property name="pixels_below_lines">0</property>
<property name="pixels_inside_wrap">0</property>
<property name="left_margin">0</property>
<property name="right_margin">0</property>
<property name="indent">0</property>
<property name="text" translatable="yes"></property>
</widget>
</child>
</widget>
<packing>
<property name="padding">0</property>
<property name="expand">True</property>
<property name="fill">True</property>
</packing>
</child>
<child>
<widget class="GtkHButtonBox" id="hbuttonbox33">
<property name="visible">True</property>
<property name="layout_style">GTK_BUTTONBOX_END</property>
<property name="spacing">0</property>
<child>
<widget class="GtkButton" id="button168">
<property name="visible">True</property>
<property name="can_default">True</property>
<property name="can_focus">True</property>
<property name="label">gtk-close</property>
<property name="use_stock">True</property>
<property name="relief">GTK_RELIEF_NORMAL</property>
<signal name="clicked" handler="on_faq_close_clicked" object="faq" last_modification_time="Wed, 26 Nov 2003 18:10:30 GMT"/>
</widget>
</child>
</widget>
<packing>
<property name="padding">0</property>
<property name="expand">False</property>
<property name="fill">True</property>
</packing>
</child>
</widget>
</child>
</widget>
</glade-interface>

View File

@@ -842,19 +842,7 @@ class Gramps:
def on_faq_activate(self,obj):
"""Display FAQ"""
faqtop = gtk.glade.XML(const.gladeFile, "faq", "faq")
faqWindow = faqtop.get_widget("faq")
faqView = faqtop.get_widget("faq_view")
faqtop.signal_autoconnect({
"on_faq_close_clicked" : Utils.destroy_passed_object
})
# FIXME: filename is bogus, waiting for install policy decision
faq_file = open('/home/shura/gramps2/FAQ')
faq_text = faq_file.read()
faq_file.close()
faq_buffer = faqView.get_buffer()
faq_buffer.set_text(faq_text)
faqWindow.show()
gnome.help_display('gramps-manual','faq')
def on_new_clicked(self,obj):
"""Prompt for permission to close the current database"""