klavaro  3.13
About: Klavaro is a touch typing tutor program.
  Fossies Dox: klavaro-3.13.tar.bz2  ("unofficial" and yet experimental doxygen-generated source code documentation)  

auxiliar.h
Go to the documentation of this file.
1 /**************************************************************************/
2 /* Klavaro - a flexible touch typing tutor */
3 /* Copyright (C) 2005-2021 Felipe Emmanuel Ferreira de Castro */
4 /* */
5 /* This file is part of Klavaro, which is a free software: you can */
6 /* redistribute it and/or modify it under the terms of the GNU General */
7 /* Public License as published by the Free Software Foundation, either */
8 /* version 3 of the License, or (at your option) any later version. */
9 /* */
10 /* Klavaro is distributed in the hope that it will be useful, */
11 /* but WITHOUT ANY WARRANTY; without even the implied warranty of */
12 /* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the */
13 /* GNU General Public License for more details (in the file COPYING). */
14 /* You should have received a copy of the GNU General Public License */
15 /* along with Klavaro. If not, see <https://www.gnu.org/licenses/> */
16 /**************************************************************************/
17 
18 #include <glib.h>
19 #include <gtk/gtk.h>
20 
21 #ifdef HAVE_CONFIG_H
22 # include <config.h>
23 #endif
24 
25 /*
26  * Standard gettext macros.
27  */
28 #ifdef ENABLE_NLS
29 # include <libintl.h>
30 # undef _
31 # define _(String) dgettext (PACKAGE, String)
32 # define Q_(String) g_strip_context ((String), gettext (String))
33 # ifdef gettext_noop
34 # define N_(String) gettext_noop (String)
35 # else
36 # define N_(String) (String)
37 # endif
38 #else
39 # define textdomain(String) (String)
40 # define gettext(String) (String)
41 # define dgettext(Domain,Message) (Message)
42 # define dngettext(Domain,Message,Message2,N) (Message)
43 # define dcgettext(Domain,Message,Type) (Message)
44 # define bindtextdomain(Domain,Directory) (Domain)
45 # define _(String) (String)
46 # define Q_(String) g_strip_context ((String), (String))
47 # define N_(String) (String)
48 #endif
49 
50 /* Public Functions.
51  */
52 
53 GObject * get_obj (gchar *name);
54 
55 GtkWidget * get_wg (gchar *name);
56 
57 GtkWindow * get_win (gchar *name);
58 
59 void set_wg_bg_color (GtkWidget *widget, gchar *bg_color);
60 
61 void set_pixmap (gchar *widget, gchar *image);
62 
63 /* Search for the user directory and create it if not found
64  */
65 void assert_user_dir (void);
66 
67 /* Compare two strings, so that it applies to other sorting functions.
68  */
69 gint compare_string_function (gconstpointer a, gconstpointer b);
GObject * get_obj(gchar *name)
Definition: auxiliar.c:30
void set_wg_bg_color(GtkWidget *widget, gchar *bg_color)
Definition: auxiliar.c:62
void set_pixmap(gchar *widget, gchar *image)
Definition: auxiliar.c:87
GtkWidget * get_wg(gchar *name)
Definition: auxiliar.c:40
gint compare_string_function(gconstpointer a, gconstpointer b)
Definition: auxiliar.c:120
GtkWindow * get_win(gchar *name)
Definition: auxiliar.c:50
void assert_user_dir(void)
Definition: auxiliar.c:101
gchar * name
Definition: keyboard.c:45