~ubuntu-branches/ubuntu/lucid/gnome-themes-extras/lucid

« back to all changes in this revision

Viewing changes to Industrial/industrial_theme_main.c

  • Committer: Bazaar Package Importer
  • Author(s): Josselin Mouette
  • Date: 2004-06-23 20:28:52 UTC
  • Revision ID: james.westby@ubuntu.com-20040623202852-j7hu6zargn5hnban
Tags: upstream-0.7.debian.1
ImportĀ upstreamĀ versionĀ 0.7.debian.1

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#include <gmodule.h>
 
2
#include <gtk/gtk.h>
 
3
 
 
4
#include "industrial_style.h"
 
5
#include "industrial_rc_style.h"
 
6
 
 
7
G_MODULE_EXPORT void
 
8
theme_init (GTypeModule *module)
 
9
{
 
10
  industrial_rc_style_register_type (module);
 
11
  industrial_style_register_type (module);
 
12
}
 
13
 
 
14
G_MODULE_EXPORT void
 
15
theme_exit (void)
 
16
{
 
17
}
 
18
 
 
19
G_MODULE_EXPORT GtkRcStyle *
 
20
theme_create_rc_style (void)
 
21
{
 
22
  return GTK_RC_STYLE (g_object_new (INDUSTRIAL_TYPE_RC_STYLE, NULL));  
 
23
}
 
24
 
 
25
/* The following function will be called by GTK+ when the module
 
26
 * is loaded and checks to see if we are compatible with the
 
27
 * version of GTK+ that loads us.
 
28
 */
 
29
G_MODULE_EXPORT const gchar* g_module_check_init (GModule *module);
 
30
const gchar*
 
31
g_module_check_init (GModule *module)
 
32
{
 
33
  return gtk_check_version (GTK_MAJOR_VERSION,
 
34
                            GTK_MINOR_VERSION,
 
35
                            GTK_MICRO_VERSION - GTK_INTERFACE_AGE);
 
36
}