gwydgets

gwydgets —

Synopsis




GtkWidget*  gwy_table_attach_spinbutton     (GtkWidget *table,
                                             gint row,
                                             const gchar *name,
                                             const gchar *units,
                                             GtkObject *adj);
void        gwy_table_attach_row            (GtkWidget *table,
                                             gint row,
                                             const gchar *name,
                                             const gchar *units,
                                             GtkWidget *middle_widget);
gboolean    gwy_dialog_prevent_delete_cb    (void);

Description

Details

gwy_table_attach_spinbutton ()

GtkWidget*  gwy_table_attach_spinbutton     (GtkWidget *table,
                                             gint row,
                                             const gchar *name,
                                             const gchar *units,
                                             GtkObject *adj);

Attaches a spinbutton with two labels to a table.

table: A GtkTable.
row: Table row to attach to.
name: The label before adj.
units: The label after adj.
adj: An adjustment to create spinbutton from.
Returns : The spinbutton as a GtkWidget.

gwy_table_attach_row ()

void        gwy_table_attach_row            (GtkWidget *table,
                                             gint row,
                                             const gchar *name,
                                             const gchar *units,
                                             GtkWidget *middle_widget);

Attaches a widget with two labels to a table.

table: A GtkTable.
row: Table row to attach to.
name: The label before middle_widget.
units: The label after adj.
middle_widget: A widget.

gwy_dialog_prevent_delete_cb ()

gboolean    gwy_dialog_prevent_delete_cb    (void);

Returns TRUE.

The purpose of this function is to be used as a callback connected to the "delete_event" of non-modal dialogs so that they can hide instead of being destroyed. This is achieved by returning TRUE from the "delete_event" callback.

See GtkDialog source code for the gory details...

Returns : TRUE.