aboutsummaryrefslogtreecommitdiffstats
path: root/e-util/gconf-bridge.c
diff options
context:
space:
mode:
authorMatthew Barnes <mbarnes@redhat.com>2009-05-27 23:13:25 +0800
committerMatthew Barnes <mbarnes@redhat.com>2009-05-29 00:13:23 +0800
commitfad4af8a3d4c6f50f7bcceca8d545eb17d6fd056 (patch)
treeae78be371695c3dc18847b87d3f014f985aa3a40 /e-util/gconf-bridge.c
parent6f5464f34ceec9e5701e3e3e651a40f9e6b3a072 (diff)
downloadgsoc2013-evolution-fad4af8a3d4c6f50f7bcceca8d545eb17d6fd056.tar
gsoc2013-evolution-fad4af8a3d4c6f50f7bcceca8d545eb17d6fd056.tar.gz
gsoc2013-evolution-fad4af8a3d4c6f50f7bcceca8d545eb17d6fd056.tar.bz2
gsoc2013-evolution-fad4af8a3d4c6f50f7bcceca8d545eb17d6fd056.tar.lz
gsoc2013-evolution-fad4af8a3d4c6f50f7bcceca8d545eb17d6fd056.tar.xz
gsoc2013-evolution-fad4af8a3d4c6f50f7bcceca8d545eb17d6fd056.tar.zst
gsoc2013-evolution-fad4af8a3d4c6f50f7bcceca8d545eb17d6fd056.zip
Prefer GLib basic types over C types.
Diffstat (limited to 'e-util/gconf-bridge.c')
-rw-r--r--e-util/gconf-bridge.c36
1 files changed, 18 insertions, 18 deletions
diff --git a/e-util/gconf-bridge.c b/e-util/gconf-bridge.c
index f0fd2ed3e2..2c0f0f2d4f 100644
--- a/e-util/gconf-bridge.c
+++ b/e-util/gconf-bridge.c
@@ -46,7 +46,7 @@ typedef struct {
gboolean delayed_mode;
- char *key;
+ gchar *key;
guint val_notify_id;
GSList *val_changes; /* List of changes made to GConf value,
that have not received change notification
@@ -66,7 +66,7 @@ typedef struct {
gboolean bind_size;
gboolean bind_pos;
- char *key_prefix;
+ gchar *key_prefix;
GtkWindow *window;
gulong configure_event_id;
@@ -79,7 +79,7 @@ typedef struct {
BindingType type;
guint id;
- char *key;
+ gchar *key;
guint val_notify_id;
GSList *val_changes; /* List of changes made to GConf value,
that have not received change notification
@@ -479,14 +479,14 @@ prop_binding_object_destroyed (gpointer user_data,
**/
guint
gconf_bridge_bind_property_full (GConfBridge *bridge,
- const char *key,
+ const gchar *key,
GObject *object,
- const char *prop,
+ const gchar *prop,
gboolean delayed_sync)
{
GParamSpec *pspec;
PropBinding *binding;
- char *signal;
+ gchar *signal;
GConfValue *val;
g_return_val_if_fail (bridge != NULL, 0);
@@ -593,8 +593,8 @@ static gboolean
window_binding_perform_scheduled_sync (WindowBinding *binding)
{
if (binding->bind_size) {
- int width, height;
- char *key;
+ gint width, height;
+ gchar *key;
GdkWindowState state;
state = gdk_window_get_state (GTK_WIDGET (binding->window)->window);
@@ -621,8 +621,8 @@ window_binding_perform_scheduled_sync (WindowBinding *binding)
}
if (binding->bind_pos) {
- int x, y;
- char *key;
+ gint x, y;
+ gchar *key;
gtk_window_get_position (binding->window, &x, &y);
@@ -727,7 +727,7 @@ window_binding_window_destroyed (gpointer user_data,
**/
guint
gconf_bridge_bind_window (GConfBridge *bridge,
- const char *key_prefix,
+ const gchar *key_prefix,
GtkWindow *window,
gboolean bind_size,
gboolean bind_pos)
@@ -751,7 +751,7 @@ gconf_bridge_bind_window (GConfBridge *bridge,
/* Set up GConf keys & sync window to GConf values */
if (bind_size) {
- char *key;
+ gchar *key;
GConfValue *width_val, *height_val, *maximized_val;
key = g_strconcat (key_prefix, "_width", NULL);
@@ -788,7 +788,7 @@ gconf_bridge_bind_window (GConfBridge *bridge,
}
if (bind_pos) {
- char *key;
+ gchar *key;
GConfValue *x_val, *y_val;
key = g_strconcat (key_prefix, "_x", NULL);
@@ -891,7 +891,7 @@ list_store_binding_sync_pref_to_store (ListStoreBinding *binding,
list = gconf_value_get_list (value);
for (l = list; l; l = l->next) {
GConfValue *l_value;
- const char *string;
+ const gchar *string;
l_value = (GConfValue *) l->data;
string = gconf_value_get_string (l_value);
@@ -915,7 +915,7 @@ list_store_binding_sync_store_to_pref (ListStoreBinding *binding)
GtkTreeModel *tree_model;
GtkTreeIter iter;
GSList *list;
- int res;
+ gint res;
GConfValue *gconf_value;
tree_model = GTK_TREE_MODEL (binding->list_store);
@@ -924,7 +924,7 @@ list_store_binding_sync_store_to_pref (ListStoreBinding *binding)
list = NULL;
res = gtk_tree_model_get_iter_first (tree_model, &iter);
while (res) {
- char *string;
+ gchar *string;
GConfValue *tmp_value;
gtk_tree_model_get (tree_model, &iter,
@@ -1035,7 +1035,7 @@ list_store_binding_store_changed_cb (ListStoreBinding *binding)
**/
guint
gconf_bridge_bind_string_list_store (GConfBridge *bridge,
- const char *key,
+ const gchar *key,
GtkListStore *list_store)
{
GtkTreeModel *tree_model;
@@ -1216,7 +1216,7 @@ error_handler (GConfClient *client,
g_warning ("GConf error:\n %s", error->message);
if (!shown_dialog) {
- char *message;
+ gchar *message;
GtkWidget *dlg;
message = g_strdup_printf (_("GConf error: %s"),