GnuCash  4.12-75-g66025ae738+
gnc-gnome-utils.h
Go to the documentation of this file.
1 /********************************************************************\
2  * gnc-gnome-utils.h -- utility functions for gnome for GnuCash *
3  * Copyright (C) 2001 Linux Developers Group *
4  * Copyright (C) 2003 David Hampton <hampton@employees.org> *
5  * *
6  * This program is free software; you can redistribute it and/or *
7  * modify it under the terms of the GNU General Public License as *
8  * published by the Free Software Foundation; either version 2 of *
9  * the License, or (at your option) any later version. *
10  * *
11  * This program is distributed in the hope that it will be useful, *
12  * but WITHOUT ANY WARRANTY; without even the implied warranty of *
13  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
14  * GNU General Public License for more details. *
15  * *
16  * You should have received a copy of the GNU General Public License*
17  * along with this program; if not, contact: *
18  * *
19  * Free Software Foundation Voice: +1-617-542-5942 *
20  * 51 Franklin Street, Fifth Floor Fax: +1-617-542-2652 *
21  * Boston, MA 02110-1301, USA gnu@gnu.org *
22  * *
23 \********************************************************************/
24 
35 #ifndef GNC_GNOME_UTILS_H
36 #define GNC_GNOME_UTILS_H
37 
38 #include <gnc-main-window.h>
39 #include "dialog-options.h"
40 
44 void gnc_gnome_utils_init (void);
45 
49 void gnc_add_css_file (void);
50 
62 void gnc_gnome_help (GtkWindow *parent, const char *file_name,
63  const char *anchor);
66 void gnc_launch_doclink (GtkWindow *parent, const char *uri);
67 
71 void gnc_options_dialog_set_book_options_help_cb (GNCOptionWin *win);
72 
76 void gnc_options_dialog_set_new_book_option_values (GNCOptionDB *odb);
77 
82 
92 GtkWidget * gnc_gnome_get_pixmap (const char *name);
93 
94 
104 GdkPixbuf * gnc_gnome_get_gdkpixbuf (const char *name);
105 
106 
112 void gnc_shutdown (int exit_status);
113 
114 
117 int gnc_ui_start_event_loop (void);
118 gboolean gnucash_ui_is_running (void);
119 
120 #endif
121 
GtkWidget * gnc_gnome_get_pixmap(const char *name)
Given a file name, find and load the requested pixmap.
void gnc_shutdown(int exit_status)
Shutdown gnucash.
Functions for adding content to a window.
void gnc_gnome_help(GtkWindow *parent, const char *file_name, const char *anchor)
Launch the systems default help browser, gnome&#39;s yelp for linux, and open to a given link within a gi...
void gnc_options_dialog_set_book_options_help_cb(GNCOptionWin *win)
Set the help callback to &#39;gnc_book_options_help_cb&#39; to open a help browser and point it to the Book O...
void gnc_add_css_file(void)
Load a gtk resource configuration file to customize gtk appearance and behaviour. ...
void gnc_gnome_utils_init(void)
Initialize the gnome-utils library Should be run once before using any gnome-utils features...
void gnc_options_dialog_set_style_sheet_options_help_cb(GNCOptionWin *win)
Set the help callback to &#39;gnc_style_sheet_options_help_cb&#39; to open a help browser and point it to the...
void gnc_options_dialog_set_new_book_option_values(GNCOptionDB *odb)
Set the initial values of new book options to values specified in user preferences.
GdkPixbuf * gnc_gnome_get_gdkpixbuf(const char *name)
Given a file name, find and load the requested pixbuf.
GncMainWindow * gnc_gui_init(void)
Initialize the gnucash gui.
void gnc_launch_doclink(GtkWindow *parent, const char *uri)
Launch the default browser and open the provided URI.
The instance data structure for a main window object.