Basic GTK+2.0 AbiWord porting guide

From: Dom Lachowicz (doml@appligent.com)
Date: Wed May 22 2002 - 14:00:37 EDT

  • Next message: Daniel Glassey: "compiling with mingw update"

    Very basic porting guide, for your enjoyment/amusement.
    xap_UnixDialog_About is finished. Functions of interest are:

    /*!
     * Runs the dialog \me as a modal dialog
     * 1) Connect focus to toplevel frame
     * 2) Centers dialog over toplevel window
     * 3) Connects F1 to help system
     * 4) Makes dialog modal
     * 5) Returns value of gtk_dialog_run(me)
     * 6) Destroys the dialog
     */
    gint abiRunModalDialog(GtkDialog * me, XAP_Frame * pFrame, XAP_Dialog *
    pDlg)

    /*!
     * Runs the dialog \me as a modeless dialog
     * 1) Connect focus to toplevel frame
     * 2) Centers dialog over toplevel window
     * 3) Makes the App remember this modeless dialog
     * 4) Connects F1 to help system
     * 5) Makes dialog non-modal (modeless)
     */
    void abiRunModelessDialog(GtkDialog * me, XAP_Frame * pFrame, XAP_Dialog
    * pDlg)

    /*!
     * Create a new GtkDialog
     */
    GtkWidget * abiDialogNew(gboolean resizable)

    /*!
     * Create a new GtkDialog with this title
     */
    GtkWidget * abiDialogNew(gboolean resizable, const char * title, ...)

    /*!
     * Calls gtk_widget_destroy on \me if \me is non-null
     * and GTK_IS_WIDGET(me)
     */
    void abiDestroyWidget(GtkWidget * me)







    This archive was generated by hypermail 2.1.4 : Wed May 22 2002 - 14:05:52 EDT