gnome-res.c File Reference

#include <gnome.h>
#include <libgnome/libgnome.h>
#include <gconf/gconf-client.h>
#include <gdk/gdk.h>
#include "config.h"
#include "gnome-res.h"

Go to the source code of this file.

Defines

#define BE_VERBOSE   (debug_level > 3)
#define DEBUG_VERBOSE(format, args...)   do { if (BE_VERBOSE) g_print ("** (" __FILE__ ": %s) Gnome-Res-DEBUG **: \n - " format, __FUNCTION__, ##args); } while(0)
#define PREF_CONFDLG_XSIZE   500
#define PREF_CONFDLG_YSIZE   400
#define PREF_VAR_PADDING   4
#define PREF_VAR_USIZE   150
#define PREF_OPT_USIZE   150
#define PREF_IN_VBOX_PACK_MODE   FALSE, TRUE, 1
#define PREF_IN_HBOX_PACK_MODE   TRUE, TRUE, PREF_VAR_PADDING
#define GCONF_APP_PREFIX   "/apps/gxsm2/preferences/default"
#define NO_SELECT_PAGES

Functions

static void gnome_res_show_info_callback (GtkWidget *widget, gpointer message)
static void gnome_res_apply_info_callback (GtkDialog *dialog, gint button_number, gpointer gnome_res_pref)
static void gnome_res_get_option_callback (GtkWidget *menuitem, gpointer res)
static void gnome_res_new_user_druid_next (GtkWidget *w, gpointer druid, gpointer gp_self)
static void gnome_res_new_user_druid_back (GtkWidget *w, gpointer druid, gpointer gp_self)
static void gnome_res_new_user_druid_finished (GtkWidget *w, gpointer druid, gpointer gp_self)
static void gnome_res_new_user_druid_cancel (GtkWidget *w, gpointer druid, gpointer gp_self)
gchar * gnome_res_get_resource_string_from_variable (GnomeResEntryInfoType *res)
void gnome_res_make_resource_variable_edit_field (GnomeResEntryInfoType *res, GtkWidget *hbox)
void gnome_res_new_user_druid_construct (GnomeResNewUserDruid *self)
gint gnome_res_new_user_druid_construct_page (GnomeResNewUserDruid *self)
void gnome_res_new_user_druid_destroy_druidpages (GnomeResNewUserDruid *self)
GnomeResPreferencesgnome_res_preferences_new (GnomeResEntryInfoType *res_def)
void gnome_res_destroy (GnomeResPreferences *self)
void gnome_res_set_ok_message (GnomeResPreferences *self, const gchar *ok_msg)
void gnome_res_set_apply_message (GnomeResPreferences *self, const gchar *apply_msg)
void gnome_res_set_apply_callback (GnomeResPreferences *self, void(*cb)(gpointer), gpointer data)
void gnome_res_set_destroy_on_close (GnomeResPreferences *self, int flg)
gchar * gnome_res_keytranslate (const gchar *name)
void gnome_res_read_user_config (GnomeResPreferences *self)
void gnome_res_write_user_config (GnomeResPreferences *self)
void gnome_res_adjustment_callback (GtkAdjustment *adj, GnomeResEntryInfoType *res)
void gnome_res_colorchange_callback (GnomeColorPicker *colorsel, guint r, guint g, guint b, guint a, GnomeResEntryInfoType *res)
void gnome_res_fontchange_callback (GnomeFontPicker *gfp, gchar *arg1, GnomeResEntryInfoType *res)
void gnome_res_run_change_user_config (GnomeResPreferences *self, const gchar *dialog_title)
GnomeResNewUserDruidgnome_res_new_user_druid_new (GnomeResEntryInfoType *res_def, const gchar *title)
GnomeResNewUserDruidgnome_res_new_user_druid_new_with_vals (GnomeResEntryInfoType *res_def, const gchar *title, GdkPixbuf *logo, GdkPixbuf *watermark, const gchar *welcome, const gchar *intro_text, const gchar *finish, const gchar *final_text)
void gnome_res_new_user_druid_destroy (GnomeResNewUserDruid *self)
GnomeResDruidFinishType gnome_res_new_user_druid_run_druids (GnomeResNewUserDruid *self)

Variables

int debug_level
int force_gconf_defaults


Define Documentation

#define BE_VERBOSE   (debug_level > 3)
 

Definition at line 40 of file gnome-res.c.

#define DEBUG_VERBOSE format,
args...   )     do { if (BE_VERBOSE) g_print ("** (" __FILE__ ": %s) Gnome-Res-DEBUG **: \n - " format, __FUNCTION__, ##args); } while(0)
 

Definition at line 43 of file gnome-res.c.

#define GCONF_APP_PREFIX   "/apps/gxsm2/preferences/default"
 

Definition at line 85 of file gnome-res.c.

#define NO_SELECT_PAGES
 

Definition at line 786 of file gnome-res.c.

#define PREF_CONFDLG_XSIZE   500
 

Definition at line 51 of file gnome-res.c.

#define PREF_CONFDLG_YSIZE   400
 

Definition at line 52 of file gnome-res.c.

#define PREF_IN_HBOX_PACK_MODE   TRUE, TRUE, PREF_VAR_PADDING
 

Definition at line 57 of file gnome-res.c.

#define PREF_IN_VBOX_PACK_MODE   FALSE, TRUE, 1
 

Definition at line 56 of file gnome-res.c.

#define PREF_OPT_USIZE   150
 

Definition at line 55 of file gnome-res.c.

#define PREF_VAR_PADDING   4
 

Definition at line 53 of file gnome-res.c.

#define PREF_VAR_USIZE   150
 

Definition at line 54 of file gnome-res.c.


Function Documentation

void gnome_res_adjustment_callback GtkAdjustment *  adj,
GnomeResEntryInfoType res
 

Definition at line 453 of file gnome-res.c.

References GnomeResEntryInfoType::var.

static void gnome_res_apply_info_callback GtkDialog *  dialog,
gint  button_number,
gpointer  gnome_res_pref
[static]
 

Definition at line 377 of file gnome-res.c.

References FALSE, gnome_res_destroy(), and gnome_res_write_user_config().

void gnome_res_colorchange_callback GnomeColorPicker *  colorsel,
guint  r,
guint  g,
guint  b,
guint  a,
GnomeResEntryInfoType res
 

Definition at line 465 of file gnome-res.c.

References GnomeResEntryInfoType::var.

void gnome_res_destroy GnomeResPreferences self  ) 
 

Definition at line 101 of file gnome-res.c.

References DEBUG_VERBOSE, GnomeResPreferences::dialog, GnomeResPreferences::pref_apply_message, GnomeResPreferences::pref_ok_message, and GnomeResPreferences::running.

void gnome_res_fontchange_callback GnomeFontPicker *  gfp,
gchar *  arg1,
GnomeResEntryInfoType res
 

Definition at line 486 of file gnome-res.c.

static void gnome_res_get_option_callback GtkWidget *  menuitem,
gpointer  res
[static]
 

Definition at line 625 of file gnome-res.c.

gchar* gnome_res_get_resource_string_from_variable GnomeResEntryInfoType res  ) 
 

gchar* gnome_res_keytranslate const gchar *  name  ) 
 

Definition at line 134 of file gnome-res.c.

References GCONF_APP_PREFIX.

void gnome_res_make_resource_variable_edit_field GnomeResEntryInfoType res,
GtkWidget *  hbox
 

static void gnome_res_new_user_druid_back GtkWidget *  w,
gpointer  druid,
gpointer  gp_self
[static]
 

Definition at line 1019 of file gnome-res.c.

References DEBUG_VERBOSE, GnomeResNewUserDruid::druid, GnomeResNewUserDruid::page, GnomeResNewUserDruid::pageindex, and GnomeResNewUserDruid::pagescreated.

void gnome_res_new_user_druid_cancel GtkWidget *  w,
gpointer  druid,
gpointer  gp_self
[static]
 

Definition at line 1036 of file gnome-res.c.

References DEBUG_VERBOSE, GNOME_RES_DRUID_CANCEL, and gnome_res_new_user_druid_destroy_druidpages().

void gnome_res_new_user_druid_construct GnomeResNewUserDruid self  ) 
 

gint gnome_res_new_user_druid_construct_page GnomeResNewUserDruid self  ) 
 

void gnome_res_new_user_druid_destroy GnomeResNewUserDruid self  ) 
 

Definition at line 771 of file gnome-res.c.

References DEBUG_VERBOSE, GnomeResNewUserDruid::final_text, GnomeResNewUserDruid::finish, gnome_res_destroy(), GnomeResNewUserDruid::intro_text, GnomeResNewUserDruid::res_pref, GnomeResNewUserDruid::title, and GnomeResNewUserDruid::welcome.

void gnome_res_new_user_druid_destroy_druidpages GnomeResNewUserDruid self  ) 
 

static void gnome_res_new_user_druid_finished GtkWidget *  w,
gpointer  druid,
gpointer  gp_self
[static]
 

Definition at line 1027 of file gnome-res.c.

References DEBUG_VERBOSE, GNOME_RES_DRUID_FINISH, gnome_res_new_user_druid_destroy_druidpages(), gnome_res_write_user_config(), and GnomeResNewUserDruid::res_pref.

GnomeResNewUserDruid* gnome_res_new_user_druid_new GnomeResEntryInfoType res_def,
const gchar *  title
 

Definition at line 728 of file gnome-res.c.

References gnome_res_new_user_druid_new_with_vals().

GnomeResNewUserDruid* gnome_res_new_user_druid_new_with_vals GnomeResEntryInfoType res_def,
const gchar *  title,
GdkPixbuf *  logo,
GdkPixbuf *  watermark,
const gchar *  welcome,
const gchar *  intro_text,
const gchar *  finish,
const gchar *  final_text
 

Definition at line 733 of file gnome-res.c.

References DEBUG_VERBOSE, gnome_res_new_user_druid_construct(), gnome_res_preferences_new(), and gnome_res_read_user_config().

static void gnome_res_new_user_druid_next GtkWidget *  w,
gpointer  druid,
gpointer  gp_self
[static]
 

Definition at line 968 of file gnome-res.c.

References DEBUG_VERBOSE, GnomeResNewUserDruid::druid, GnomeResNewUserDruid::finishpage, gnome_res_new_user_druid_back(), gnome_res_new_user_druid_cancel(), gnome_res_new_user_druid_construct_page(), gnome_res_new_user_druid_next(), gnome_res_write_user_config(), GnomeResNewUserDruid::page, GnomeResNewUserDruid::pageindex, GnomeResNewUserDruid::pagescreated, and GnomeResNewUserDruid::res_pref.

GnomeResDruidFinishType gnome_res_new_user_druid_run_druids GnomeResNewUserDruid self  ) 
 

Definition at line 937 of file gnome-res.c.

References DEBUG_VERBOSE, GNOME_RES_DRUID_RUNNING, and GnomeResNewUserDruid::window.

GnomeResPreferences* gnome_res_preferences_new GnomeResEntryInfoType res_def  ) 
 

Definition at line 87 of file gnome-res.c.

References DEBUG_VERBOSE, FALSE, and TRUE.

void gnome_res_read_user_config GnomeResPreferences self  ) 
 

Definition at line 146 of file gnome-res.c.

References BE_VERBOSE, DEBUG_VERBOSE, GCONF_APP_PREFIX, GNOME_RES_BOOL, GNOME_RES_FIRST, GNOME_RES_FLOAT, GNOME_RES_FLOAT_VEC3, GNOME_RES_FLOAT_VEC4, GNOME_RES_FLOAT_W_UNIT, GNOME_RES_IGNORE_INFO, GNOME_RES_INT, gnome_res_keytranslate(), GNOME_RES_LAST, GNOME_RES_STRING, GnomeResEntryInfoType::path, GnomeResPreferences::res_def, GnomeResEntryInfoType::type, GnomeResEntryInfoType::var, GnomeResEntryInfoType::vdefault, and VERSION.

void gnome_res_run_change_user_config GnomeResPreferences self,
const gchar *  dialog_title
 

Definition at line 637 of file gnome-res.c.

References _, GnomeResEntryInfoType::comment, DEBUG_VERBOSE, GnomeResPreferences::dialog, GnomeResEntryInfoType::entry, FALSE, GNOME_PAD, GNOME_RES_FIRST, GNOME_RES_IGNORE_INFO, GNOME_RES_LAST, gnome_res_make_resource_variable_edit_field(), GNOME_RES_SEPARATOR, gnome_res_show_info_callback(), GnomeResEntryInfoType::group, GnomeResEntryInfoType::path, PREF_CONFDLG_XSIZE, PREF_CONFDLG_YSIZE, PREF_IN_HBOX_PACK_MODE, PREF_IN_VBOX_PACK_MODE, GnomeResPreferences::res_def, GnomeResPreferences::running, TRUE, and GnomeResEntryInfoType::type.

void gnome_res_set_apply_callback GnomeResPreferences self,
void(*)(gpointer)  cb,
gpointer  data
 

Definition at line 125 of file gnome-res.c.

void gnome_res_set_apply_message GnomeResPreferences self,
const gchar *  apply_msg
 

Definition at line 119 of file gnome-res.c.

References GnomeResPreferences::pref_apply_message.

void gnome_res_set_destroy_on_close GnomeResPreferences self,
int  flg
 

Definition at line 130 of file gnome-res.c.

void gnome_res_set_ok_message GnomeResPreferences self,
const gchar *  ok_msg
 

Definition at line 113 of file gnome-res.c.

References GnomeResPreferences::pref_ok_message.

static void gnome_res_show_info_callback GtkWidget *  widget,
gpointer  message
[static]
 

Definition at line 365 of file gnome-res.c.

void gnome_res_write_user_config GnomeResPreferences self  ) 
 

Definition at line 282 of file gnome-res.c.

References BE_VERBOSE, DEBUG_VERBOSE, GnomeResEntryInfoType::entry, FALSE, GNOME_RES_BOOL, GNOME_RES_FIRST, GNOME_RES_FLOAT, GNOME_RES_FLOAT_VEC3, GNOME_RES_FLOAT_VEC4, GNOME_RES_FLOAT_W_UNIT, GNOME_RES_IGNORE_INFO, GNOME_RES_INT, gnome_res_keytranslate(), GNOME_RES_LAST, GNOME_RES_STRING, GnomeResEntryInfoType::path, GnomeResPreferences::res_def, GnomeResEntryInfoType::tmp, TRUE, GnomeResEntryInfoType::type, GnomeResEntryInfoType::var, and GnomeResEntryInfoType::vdefault.


Variable Documentation

int debug_level
 

Definition at line 51 of file gxsm_main.C.

int force_gconf_defaults
 

Definition at line 53 of file gxsm_main.C.


Generated on Sat Apr 1 09:04:32 2006 for GXSM by  doxygen 1.4.6