GnuCash  5.6-150-g038405b370+
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 
40 #ifdef __cplusplus
41 extern "C" {
42 #endif
43 
47 void gnc_gnome_utils_init (void);
48 
52 void gnc_add_css_file (void);
53 
65 void gnc_gnome_help (GtkWindow *parent, const char *file_name,
66  const char *anchor);
69 void gnc_launch_doclink (GtkWindow *parent, const char *uri);
70 
80 GtkWidget * gnc_gnome_get_pixmap (const char *name);
81 
82 
92 GdkPixbuf * gnc_gnome_get_gdkpixbuf (const char *name);
93 
94 
100 void gnc_shutdown (int exit_status);
101 
102 
105 int gnc_ui_start_event_loop (void);
106 gboolean gnucash_ui_is_running (void);
107 
108 #ifdef __cplusplus
109 }
110 #endif
111 
112 #endif
113 
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_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...
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.