"Fossies" - the Fresh Open Source Software Archive

Member "klavaro-3.13/src/auxiliar.h" (18 Apr 2021, 2522 Bytes) of package /linux/privat/klavaro-3.13.tar.bz2:


As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) C and C++ source code syntax highlighting (style: standard) with prefixed line numbers and code folding option. Alternatively you can here view or download the uninterpreted source code file. For more information about "auxiliar.h" see the Fossies "Dox" file reference documentation and the latest Fossies "Diffs" side-by-side code changes report: 3.12_vs_3.13.

    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);