#include <gtk/gtk.h>
#include <gdk/gdk.h>
#include <goffice/app/goffice-app.h>
#include <goffice/utils/go-image.h>
#include <goffice/gtk/go-color-group.h>
#include <goffice/gtk/go-color-palette.h>
Go to the source code of this file.
Functions | |
G_BEGIN_DECLS void | go_gtk_editable_enters (GtkWindow *window, GtkWidget *w) |
go_gtk_editable_enters: : : | |
GdkPixbuf * | go_pixbuf_new_from_file (char const *filename) |
GdkPixbuf * | go_pixbuf_intelligent_scale (GdkPixbuf *pixbuf, guint width, guint height) |
int | go_pango_measure_string (PangoContext *context, PangoFontDescription const *font_desc, char const *str) |
gint | go_gtk_dialog_run (GtkDialog *dialog, GtkWindow *parent) |
go_gtk_dialog_run | |
GtkWidget * | go_gtk_dialog_add_button (GtkDialog *dialog, char const *text, char const *stock_id, gint response_id) |
go_gtk_dialog_add_button : : dialog you want to add a button : button label : stock icon id : respond id when button clicked | |
void | go_gtk_notice_dialog (GtkWindow *parent, GtkMessageType type, const gchar *format,...) |
void | go_gtk_notice_nonmodal_dialog (GtkWindow *parent, GtkWidget **ref, GtkMessageType type, const gchar *format,...) |
gboolean | go_gtk_query_yes_no (GtkWindow *toplevel, gboolean default_answer, const gchar *format,...) |
GtkWidget * | go_gtk_button_new_with_stock (char const *text, char const *stock_id) |
go_gtk_button_new_with_stock | |
void | go_gtk_widget_disable_focus (GtkWidget *w) |
void | go_gtk_window_set_transient (GtkWindow *parent, GtkWindow *window) |
go_gtk_window_set_transient : The calling window : the transient window | |
void | go_gtk_help_button_init (GtkWidget *w, char const *data_dir, char const *app, char const *link) |
void | go_gtk_nonmodal_dialog (GtkWindow *toplevel, GtkWindow *dialog) |
gboolean | go_gtk_file_sel_dialog (GtkWindow *toplevel, GtkWidget *w) |
char * | go_gtk_select_image (GtkWindow *toplevel, const char *initial) |
gboolean | go_gtk_url_is_writeable (GtkWindow *parent, char const *url, gboolean overwrite_by_default) |
go_gtk_url_is_writeable: : GtkWindow : : | |
void | go_atk_setup_label (GtkWidget *label, GtkWidget *target) |
go_atk_setup_label : : GtkWidget : GtkWidget | |
void | go_dialog_guess_alternative_button_order (GtkDialog *dialog) |
go_dialog_guess_alternative_button_order: : |
void go_atk_setup_label | ( | GtkWidget * | label, | |
GtkWidget * | target | |||
) |
go_atk_setup_label : : GtkWidget : GtkWidget
A convenience routine to setup label-for/labeled-by relationship between a pair of widgets
void go_dialog_guess_alternative_button_order | ( | GtkDialog * | dialog | ) |
go_dialog_guess_alternative_button_order: :
This function inspects the buttons in the dialog and comes up with a reasonable alternative dialog order.
GtkWidget* go_gtk_button_new_with_stock | ( | char const * | text, | |
char const * | stock_id | |||
) |
go_gtk_button_new_with_stock
Code from gedit
Creates a new GtkButton with custom label and stock image.
text : button label stock_id : id for stock icon
return : newly created button
GtkWidget* go_gtk_dialog_add_button | ( | GtkDialog * | dialog, | |
char const * | text, | |||
char const * | stock_id, | |||
gint | response_id | |||
) |
go_gtk_dialog_add_button : : dialog you want to add a button : button label : stock icon id : respond id when button clicked
Creates and adds a button with stock image to the action area of an existing dialog. Code from gedit
return : newly created button
gint go_gtk_dialog_run | ( | GtkDialog * | dialog, | |
GtkWindow * | parent | |||
) |
go_gtk_dialog_run
Pop up a dialog as child of a window.
G_BEGIN_DECLS void go_gtk_editable_enters | ( | GtkWindow * | window, | |
GtkWidget * | w | |||
) |
go_gtk_editable_enters: : :
Normally if there's an editable widget (such as GtkEntry) in your dialog, pressing Enter will activate the editable rather than the default dialog button. However, in most cases, the user expects to type something in and then press enter to close the dialog. This function enables that behavior.
gboolean go_gtk_file_sel_dialog | ( | GtkWindow * | toplevel, | |
GtkWidget * | w | |||
) |
void go_gtk_help_button_init | ( | GtkWidget * | w, | |
char const * | data_dir, | |||
char const * | app, | |||
char const * | link | |||
) |
void go_gtk_nonmodal_dialog | ( | GtkWindow * | toplevel, | |
GtkWindow * | dialog | |||
) |
void go_gtk_notice_dialog | ( | GtkWindow * | parent, | |
GtkMessageType | type, | |||
const gchar * | format, | |||
... | ||||
) |
void go_gtk_notice_nonmodal_dialog | ( | GtkWindow * | parent, | |
GtkWidget ** | ref, | |||
GtkMessageType | type, | |||
const gchar * | format, | |||
... | ||||
) |
gboolean go_gtk_query_yes_no | ( | GtkWindow * | toplevel, | |
gboolean | default_answer, | |||
const gchar * | format, | |||
... | ||||
) |
char* go_gtk_select_image | ( | GtkWindow * | toplevel, | |
const char * | initial | |||
) |
gboolean go_gtk_url_is_writeable | ( | GtkWindow * | parent, | |
char const * | uri, | |||
gboolean | overwrite_by_default | |||
) |
go_gtk_url_is_writeable: : GtkWindow : :
Check if it makes sense to try saving. If it's an existing file and writable for us, ask if we want to overwrite. We check for other problems, but if we miss any, the saver will report. So it doesn't have to be bulletproof.
FIXME: The message boxes should really be children of the file selector, not the workbook.
void go_gtk_widget_disable_focus | ( | GtkWidget * | w | ) |
void go_gtk_window_set_transient | ( | GtkWindow * | toplevel, | |
GtkWindow * | window | |||
) |
go_gtk_window_set_transient : The calling window : the transient window
Make the window a child of the workbook in the command context, if there is one. The function duplicates the positioning functionality in gnome_dialog_set_parent, but does not require the transient window to be a GnomeDialog.
int go_pango_measure_string | ( | PangoContext * | context, | |
PangoFontDescription const * | font_desc, | |||
char const * | str | |||
) |
GdkPixbuf* go_pixbuf_intelligent_scale | ( | GdkPixbuf * | pixbuf, | |
guint | width, | |||
guint | height | |||
) |
GdkPixbuf* go_pixbuf_new_from_file | ( | char const * | filename | ) |