pidgin  2.13.0
About: Pidgin is a chat program (multi-protocol instant messaging client) which lets you log in to accounts on multiple chat networks simultaneously (old name "gaim").
  Fossies Dox: pidgin-2.13.0.tar.gz  ("inofficial" and yet experimental doxygen-generated source code documentation)  

pidginrc.c File Reference
#include "internal.h"
#include "gtkplugin.h"
#include "gtkprefs.h"
#include "gtkutils.h"
#include "util.h"
#include "version.h"
Include dependency graph for pidginrc.c:

Go to the source code of this file.

Functions

static GString * make_gtkrc_string (void)
 
static void purplerc_make_changes (void)
 
static void purplerc_write (GtkWidget *widget, gpointer data)
 
static void purplerc_reread (GtkWidget *widget, gpointer data)
 
static void purplerc_pref_changed_cb (const char *name, PurplePrefType type, gconstpointer value, gpointer data)
 
static void purplerc_color_response (GtkDialog *color_dialog, gint response, gpointer data)
 
static void purplerc_set_color (GtkWidget *widget, gpointer data)
 
static void purplerc_font_response (GtkDialog *font_dialog, gint response, gpointer data)
 
static void purplerc_set_font (GtkWidget *widget, gpointer data)
 
static gboolean purplerc_plugin_load (PurplePlugin *plugin)
 
static gboolean purplerc_plugin_unload (PurplePlugin *plugin)
 
static GtkWidget * purplerc_make_interface_vbox (void)
 
static GtkWidget * purplerc_make_fonts_vbox (void)
 
static GtkWidget * purplerc_make_misc_vbox (void)
 
static GtkWidget * purplerc_get_config_frame (PurplePlugin *plugin)
 
static void purplerc_init (PurplePlugin *plugin)
 

Variables

static guint pref_callback
 
static const gchar * color_prefs []
 
static const gchar * color_prefs_set []
 
static const gchar * color_names []
 
static GtkWidget * color_widgets [G_N_ELEMENTS(color_prefs)]
 
static const gchar * widget_size_prefs []
 
static const gchar * widget_size_prefs_set []
 
static const gchar * widget_size_names []
 
static GtkWidget * widget_size_widgets [G_N_ELEMENTS(widget_size_prefs)]
 
static const gchar * font_prefs []
 
static const gchar * font_prefs_set []
 
static const gchar * font_names []
 
static GtkWidget * font_widgets [G_N_ELEMENTS(font_prefs)]
 
static PidginPluginUiInfo purplerc_ui_info
 
static PurplePluginInfo purplerc_info
 

Detailed Description

Pidgin GTK+ resource control plugin.

Definition in file pidginrc.c.

Function Documentation

◆ make_gtkrc_string()

◆ purplerc_color_response()

static void purplerc_color_response ( GtkDialog *  color_dialog,
gint  response,
gpointer  data 
)
static

Definition at line 238 of file pidginrc.c.

References color_prefs, data, and purple_prefs_set_string().

Referenced by purplerc_set_color().

◆ purplerc_font_response()

static void purplerc_font_response ( GtkDialog *  font_dialog,
gint  response,
gpointer  data 
)
static

Definition at line 295 of file pidginrc.c.

References data, font_prefs, NULL, and purple_prefs_set_string().

Referenced by purplerc_set_font().

◆ purplerc_get_config_frame()

◆ purplerc_init()

◆ purplerc_make_changes()

static void purplerc_make_changes ( void  )
static

Definition at line 201 of file pidginrc.c.

References make_gtkrc_string(), NULL, str, and TRUE.

Referenced by purplerc_plugin_load(), purplerc_pref_changed_cb(), and purplerc_reread().

◆ purplerc_make_fonts_vbox()

◆ purplerc_make_interface_vbox()

◆ purplerc_make_misc_vbox()

◆ purplerc_plugin_load()

static gboolean purplerc_plugin_load ( PurplePlugin plugin)
static

◆ purplerc_plugin_unload()

static gboolean purplerc_plugin_unload ( PurplePlugin plugin)
static

Definition at line 361 of file pidginrc.c.

References pref_callback, purple_prefs_disconnect_callback(), and TRUE.

◆ purplerc_pref_changed_cb()

static void purplerc_pref_changed_cb ( const char *  name,
PurplePrefType  type,
gconstpointer  value,
gpointer  data 
)
static

Definition at line 231 of file pidginrc.c.

References purplerc_make_changes().

Referenced by purplerc_plugin_load().

◆ purplerc_reread()

static void purplerc_reread ( GtkWidget *  widget,
gpointer  data 
)
static

Definition at line 223 of file pidginrc.c.

References purplerc_make_changes().

Referenced by purplerc_get_config_frame().

◆ purplerc_set_color()

static void purplerc_set_color ( GtkWidget *  widget,
gpointer  data 
)
static

◆ purplerc_set_font()

static void purplerc_set_font ( GtkWidget *  widget,
gpointer  data 
)
static

◆ purplerc_write()

static void purplerc_write ( GtkWidget *  widget,
gpointer  data 
)
static

Definition at line 214 of file pidginrc.c.

References make_gtkrc_string(), purple_util_write_data_to_file(), str, and TRUE.

Referenced by purplerc_get_config_frame().

Variable Documentation

◆ color_names

const gchar* color_names[]
static
Initial value:
= {
N_("Hyperlink Color"),
N_("Visited Hyperlink Color"),
N_("Sent Message Name Color"),
N_("Received Message Name Color"),
N_("Highlighted Message Name Color"),
N_("Action Message Name Color"),
}
#define N_(String)
Definition: internal.h:59

Definition at line 54 of file pidginrc.c.

Referenced by purplerc_make_interface_vbox(), and purplerc_set_color().

◆ color_prefs

const gchar* color_prefs[]
static
Initial value:
= {
"/plugins/gtk/purplerc/color/GtkIMHtml::hyperlink-color",
"/plugins/gtk/purplerc/color/GtkIMHtml::hyperlink-visited-color",
"/plugins/gtk/purplerc/color/GtkIMHtml::send-name-color",
"/plugins/gtk/purplerc/color/GtkIMHtml::receive-name-color",
"/plugins/gtk/purplerc/color/GtkIMHtml::highlight-name-color",
"/plugins/gtk/purplerc/color/GtkIMHtml::action-name-color",
"/plugins/gtk/purplerc/color/GtkIMHtml::typing-notification-color"
}

Definition at line 36 of file pidginrc.c.

Referenced by make_gtkrc_string(), purplerc_color_response(), purplerc_init(), purplerc_make_interface_vbox(), and purplerc_set_color().

◆ color_prefs_set

const gchar* color_prefs_set[]
static
Initial value:
= {
"/plugins/gtk/purplerc/set/color/GtkIMHtml::hyperlink-color",
"/plugins/gtk/purplerc/set/color/GtkIMHtml::hyperlink-visited-color",
"/plugins/gtk/purplerc/set/color/GtkIMHtml::send-name-color",
"/plugins/gtk/purplerc/set/color/GtkIMHtml::receive-name-color",
"/plugins/gtk/purplerc/set/color/GtkIMHtml::highlight-name-color",
"/plugins/gtk/purplerc/set/color/GtkIMHtml::action-name-color",
"/plugins/gtk/purplerc/set/color/GtkIMHtml::typing-notification-color"
}

Definition at line 45 of file pidginrc.c.

Referenced by make_gtkrc_string(), purplerc_init(), and purplerc_make_interface_vbox().

◆ color_widgets

GtkWidget* color_widgets[G_N_ELEMENTS(color_prefs)]
static

Definition at line 63 of file pidginrc.c.

Referenced by purplerc_make_interface_vbox().

◆ font_names

const gchar* font_names[]
static
Initial value:
= {
N_("Conversation Entry"),
N_("Conversation History"),
N_("Request Dialog"),
}
#define N_(String)
Definition: internal.h:59

Definition at line 88 of file pidginrc.c.

Referenced by purplerc_make_fonts_vbox(), and purplerc_set_font().

◆ font_prefs

const gchar* font_prefs[]
static
Initial value:
= {
"/plugins/gtk/purplerc/font/*pidgin_conv_entry",
"/plugins/gtk/purplerc/font/*pidgin_conv_imhtml",
"/plugins/gtk/purplerc/font/*pidgin_request_imhtml",
"/plugins/gtk/purplerc/font/*pidgin_notify_imhtml",
}

Definition at line 76 of file pidginrc.c.

Referenced by make_gtkrc_string(), purplerc_font_response(), purplerc_init(), purplerc_make_fonts_vbox(), and purplerc_set_font().

◆ font_prefs_set

const gchar* font_prefs_set[]
static
Initial value:
= {
"/plugins/gtk/purplerc/set/font/*pidgin_conv_entry",
"/plugins/gtk/purplerc/set/font/*pidgin_conv_imhtml",
"/plugins/gtk/purplerc/set/font/*pidgin_request_imhtml",
"/plugins/gtk/purplerc/set/font/*pidgin_notify_imhtml",
}

Definition at line 82 of file pidginrc.c.

Referenced by make_gtkrc_string(), purplerc_init(), and purplerc_make_fonts_vbox().

◆ font_widgets

GtkWidget* font_widgets[G_N_ELEMENTS(font_prefs)]
static

Definition at line 94 of file pidginrc.c.

Referenced by purplerc_make_fonts_vbox().

◆ pref_callback

guint pref_callback
static

Definition at line 34 of file pidginrc.c.

Referenced by purplerc_plugin_load(), and purplerc_plugin_unload().

◆ purplerc_info

PurplePluginInfo purplerc_info
static

Definition at line 616 of file pidginrc.c.

◆ purplerc_ui_info

PidginPluginUiInfo purplerc_ui_info
static
Initial value:
=
{
0,
}
#define NULL
Definition: getopt1.c:52
static GtkWidget * purplerc_get_config_frame(PurplePlugin *plugin)
Definition: pidginrc.c:543

Definition at line 604 of file pidginrc.c.

◆ widget_size_names

const gchar* widget_size_names[]
static
Initial value:
= {
}

Definition at line 71 of file pidginrc.c.

Referenced by purplerc_make_misc_vbox().

◆ widget_size_prefs

const gchar* widget_size_prefs[]
static
Initial value:
= {
"/plugins/gtk/purplerc/size/GtkTreeView::horizontal_separator"
}

Definition at line 65 of file pidginrc.c.

Referenced by make_gtkrc_string(), purplerc_init(), and purplerc_make_misc_vbox().

◆ widget_size_prefs_set

const gchar* widget_size_prefs_set[]
static
Initial value:
= {
"/plugins/gtk/purplerc/set/size/GtkTreeView::horizontal_separator"
}

Definition at line 68 of file pidginrc.c.

Referenced by make_gtkrc_string(), purplerc_init(), and purplerc_make_misc_vbox().

◆ widget_size_widgets

GtkWidget* widget_size_widgets[G_N_ELEMENTS(widget_size_prefs)]
static

Definition at line 74 of file pidginrc.c.

Referenced by purplerc_make_misc_vbox().