## interface

interface —

## Synopsis

    GtkWidget*  create_main_window              (void);
    GtkWidget*  create_menubar                  (GtkWidget *win);
    GtkWidget*  create_gkdebconf_image          (gchar *iname);
    void        show_about_window               (GtkWidget *main_window,
                                                 gchar *msg,
                                                 gchar *iname);
    void        gk_dialog                       (GtkMessageType type,
                                                 gchar *msg,
                                                 ...);
    void        set_description                 (GtkWidget *text,
                                                 gchar *pkg);
    void        gtk_list_store_set_strings      (GtkListStore *store,
                                                 GList *cflist);
    void        list_item_selected              (GtkTreeSelection *selection,
                                                 gpointer data);
    void        cf_select                       (GtkTreeSelection *selection,
                                                 gpointer data);
    GtkWidget*  gk_splash                       (void);
    void        about_cb                        (GtkWidget *w,
                                                 gpointer data);
    void        gk_dialog_for_gconf             (gchar *key,
                                                 gchar *format,
                                                 ...);

## Description

## Details

### create_main_window ()

    GtkWidget*  create_main_window              (void);

This function create the main window: fills package names and order them by sections fills desciptions fills frontends

Returns : | Pointer to the window created

### create_menubar ()

    GtkWidget*  create_menubar                  (GtkWidget *win);

Check if the last frontend should be remembered and what is it

`win`: | The window where the menubar will be
Returns : | A widget with a menu bar filled.

### create_gkdebconf_image ()

    GtkWidget*  create_gkdebconf_image          (gchar *iname);

`iname`: | The file name that contains the image.
Returns : | A widget with the image in.

### show_about_window ()

    void        show_about_window               (GtkWidget *main_window,
                                                 gchar *msg,
                                                 gchar *iname);

This funcion just show about windows under main window. And on close back focus to main window.

`main_window`: |
`msg`: | The about message.
`iname`: | The file name that contains the image.

### gk_dialog ()

    void        gk_dialog                       (GtkMessageType type,
                                                 gchar *msg,
                                                 ...);

Shows 'msg' in a dialog box with an OK button This function is to be a helper for functions needing to display some information to the user

`type`: | Type of the message.
`msg`: |
`...`: |

### set_description ()

    void        set_description                 (GtkWidget *text,
                                                 gchar *pkg);

`text`: | the gtk_text_view where description will be showed.
`pkg`: | The package description.

### gtk_list_store_set_strings ()

    void        gtk_list_store_set_strings      (GtkListStore *store,
                                                 GList *cflist);

`store`: | The gtkListStore Object that will be filled.
`cflist`: |

### list_item_selected ()

    void        list_item_selected              (GtkTreeSelection *selection,
                                                 gpointer data);

Section list selection callback.

`selection`: | GtkTreeSelection that will receive data.
`data`: | Glist with data that will be loaded on selection.

### cf_select ()

    void        cf_select                       (GtkTreeSelection *selection,
                                                 gpointer data);

Finds package from list with g_list_find_custom and selects package desciption from pkgdesc_list

`selection`: | GtkTreeSelection that will receive data.
`data`: | Glist with data that will be loaded on selection.

### gk_splash ()

    GtkWidget*  gk_splash                       (void);

Show gkdebonf splash image and a laber under the image showing status.

Returns : |

### about_cb ()

    void        about_cb                        (GtkWidget *w,
                                                 gpointer data);

`w`: |
`data`: |

### gk_dialog_for_gconf ()

    void        gk_dialog_for_gconf             (gchar *key,
                                                 gchar *format,
                                                 ...);

`key`: |
`format`: |
`...`: |