summaryrefslogtreecommitdiff
path: root/gtk/gtkwidget.c
diff options
context:
space:
mode:
authorBenjamin Otte <otte@redhat.com>2020-07-24 20:40:36 +0200
committerBenjamin Otte <otte@redhat.com>2020-07-25 00:47:36 +0200
commitd375dce9f52fd9830069a6fd9287abde93d3f24b (patch)
treecd759ec130e07189ab7f19ebd03b8e89923aaa7f /gtk/gtkwidget.c
parentd7266b25ba5f2f21a5bd19d0fb88aca530e4d265 (diff)
downloadgtk+-d375dce9f52fd9830069a6fd9287abde93d3f24b.tar.gz
Replace "gchar" with "char"
Diffstat (limited to 'gtk/gtkwidget.c')
-rw-r--r--gtk/gtkwidget.c106
1 files changed, 53 insertions, 53 deletions
diff --git a/gtk/gtkwidget.c b/gtk/gtkwidget.c
index df02699f07..70158b101b 100644
--- a/gtk/gtkwidget.c
+++ b/gtk/gtkwidget.c
@@ -473,13 +473,13 @@
GTK_STATE_FLAG_ACTIVE)
typedef struct {
- gchar *name; /* Name of the template automatic child */
+ char *name; /* Name of the template automatic child */
gboolean internal_child; /* Whether the automatic widget should be exported as an <internal-child> */
gssize offset; /* Instance private data offset where to set the automatic child (or 0) */
} AutomaticChildClass;
typedef struct {
- gchar *callback_name;
+ char *callback_name;
GCallback callback_symbol;
} CallbackSymbol;
@@ -629,26 +629,26 @@ static AtkObject* gtk_widget_ref_accessible (AtkImplementor *implementor);
static void gtk_widget_buildable_interface_init (GtkBuildableIface *iface);
static void gtk_widget_buildable_set_name (GtkBuildable *buildable,
- const gchar *name);
-static const gchar * gtk_widget_buildable_get_name (GtkBuildable *buildable);
+ const char *name);
+static const char * gtk_widget_buildable_get_name (GtkBuildable *buildable);
static GObject * gtk_widget_buildable_get_internal_child (GtkBuildable *buildable,
GtkBuilder *builder,
- const gchar *childname);
+ const char *childname);
static gboolean gtk_widget_buildable_custom_tag_start (GtkBuildable *buildable,
GtkBuilder *builder,
GObject *child,
- const gchar *tagname,
+ const char *tagname,
GtkBuildableParser *parser,
gpointer *data);
static void gtk_widget_buildable_custom_tag_end (GtkBuildable *buildable,
GtkBuilder *builder,
GObject *child,
- const gchar *tagname,
+ const char *tagname,
gpointer data);
static void gtk_widget_buildable_custom_finished (GtkBuildable *buildable,
GtkBuilder *builder,
GObject *child,
- const gchar *tagname,
+ const char *tagname,
gpointer data);
static void gtk_widget_buildable_parser_finished (GtkBuildable *buildable,
GtkBuilder *builder);
@@ -2334,7 +2334,7 @@ gtk_widget_init (GTypeInstance *instance, gpointer g_class)
**/
GtkWidget*
gtk_widget_new (GType type,
- const gchar *first_property_name,
+ const char *first_property_name,
...)
{
GtkWidget *widget;
@@ -4122,7 +4122,7 @@ gtk_widget_class_add_binding (GtkWidgetClass *widget_class,
guint keyval,
GdkModifierType mods,
GtkShortcutFunc func,
- const gchar *format_string,
+ const char *format_string,
...)
{
GtkShortcut *shortcut;
@@ -4168,8 +4168,8 @@ void
gtk_widget_class_add_binding_signal (GtkWidgetClass *widget_class,
guint keyval,
GdkModifierType mods,
- const gchar *signal,
- const gchar *format_string,
+ const char *signal,
+ const char *format_string,
...)
{
GtkShortcut *shortcut;
@@ -4217,8 +4217,8 @@ void
gtk_widget_class_add_binding_action (GtkWidgetClass *widget_class,
guint keyval,
GdkModifierType mods,
- const gchar *action_name,
- const gchar *format_string,
+ const char *action_name,
+ const char *format_string,
...)
{
GtkShortcut *shortcut;
@@ -5243,7 +5243,7 @@ _gtk_widget_set_has_grab (GtkWidget *widget,
*/
void
gtk_widget_set_name (GtkWidget *widget,
- const gchar *name)
+ const char *name)
{
GtkWidgetPrivate *priv = gtk_widget_get_instance_private (widget);
@@ -5267,7 +5267,7 @@ gtk_widget_set_name (GtkWidget *widget,
* Returns: name of the widget. This string is owned by GTK+ and
* should not be modified or freed
**/
-const gchar*
+const char *
gtk_widget_get_name (GtkWidget *widget)
{
GtkWidgetPrivate *priv = gtk_widget_get_instance_private (widget);
@@ -6327,7 +6327,7 @@ gtk_widget_create_pango_context (GtkWidget *widget)
**/
PangoLayout *
gtk_widget_create_pango_layout (GtkWidget *widget,
- const gchar *text)
+ const char *text)
{
PangoLayout *layout;
PangoContext *context;
@@ -8287,7 +8287,7 @@ static void
gtk_widget_buildable_add_child (GtkBuildable *buildable,
GtkBuilder *builder,
GObject *child,
- const gchar *type)
+ const char *type)
{
if (type != NULL)
{
@@ -8326,13 +8326,13 @@ gtk_widget_buildable_interface_init (GtkBuildableIface *iface)
static void
gtk_widget_buildable_set_name (GtkBuildable *buildable,
- const gchar *name)
+ const char *name)
{
g_object_set_qdata_full (G_OBJECT (buildable), quark_builder_set_name,
g_strdup (name), g_free);
}
-static const gchar *
+static const char *
gtk_widget_buildable_get_name (GtkBuildable *buildable)
{
return g_object_get_qdata (G_OBJECT (buildable), quark_builder_set_name);
@@ -8341,7 +8341,7 @@ gtk_widget_buildable_get_name (GtkBuildable *buildable)
static GObject *
gtk_widget_buildable_get_internal_child (GtkBuildable *buildable,
GtkBuilder *builder,
- const gchar *childname)
+ const char *childname)
{
GtkWidgetClass *class;
GSList *l;
@@ -8383,15 +8383,15 @@ gtk_widget_buildable_get_internal_child (GtkBuildable *buildable,
typedef struct
{
- gchar *action_name;
+ char *action_name;
GString *description;
- gchar *context;
+ char *context;
gboolean translatable;
} AtkActionData;
typedef struct
{
- gchar *target;
+ char *target;
AtkRelationType type;
int line;
int col;
@@ -8461,9 +8461,9 @@ typedef struct
static void
accessibility_start_element (GtkBuildableParseContext *context,
- const gchar *element_name,
- const gchar **names,
- const gchar **values,
+ const char *element_name,
+ const char **names,
+ const char **values,
gpointer user_data,
GError **error)
{
@@ -8471,8 +8471,8 @@ accessibility_start_element (GtkBuildableParseContext *context,
if (strcmp (element_name, "relation") == 0)
{
- gchar *target = NULL;
- gchar *type = NULL;
+ char *target = NULL;
+ char *type = NULL;
AtkRelationData *relation;
AtkRelationType relation_type;
@@ -8507,9 +8507,9 @@ accessibility_start_element (GtkBuildableParseContext *context,
}
else if (strcmp (element_name, "action") == 0)
{
- const gchar *action_name;
- const gchar *description = NULL;
- const gchar *msg_context = NULL;
+ const char *action_name;
+ const char *description = NULL;
+ const char *msg_context = NULL;
gboolean translatable = FALSE;
AtkActionData *action;
@@ -8538,7 +8538,7 @@ accessibility_start_element (GtkBuildableParseContext *context,
}
else if (strcmp (element_name, "role") == 0)
{
- const gchar *type;
+ const char *type;
AtkRole role;
if (!_gtk_builder_check_parent (data->builder, context, "accessibility", error))
@@ -8595,7 +8595,7 @@ accessibility_start_element (GtkBuildableParseContext *context,
static void
accessibility_text (GtkBuildableParseContext *context,
- const gchar *text,
+ const char *text,
gsize text_len,
gpointer user_data,
GError **error)
@@ -8625,9 +8625,9 @@ typedef struct
static void
style_start_element (GtkBuildableParseContext *context,
- const gchar *element_name,
- const gchar **names,
- const gchar **values,
+ const char *element_name,
+ const char **names,
+ const char **values,
gpointer user_data,
GError **error)
{
@@ -8635,7 +8635,7 @@ style_start_element (GtkBuildableParseContext *context,
if (strcmp (element_name, "class") == 0)
{
- const gchar *name;
+ const char *name;
if (!_gtk_builder_check_parent (data->builder, context, "style", error))
return;
@@ -8708,9 +8708,9 @@ layout_property_info_free (gpointer data)
static void
layout_start_element (GtkBuildableParseContext *context,
- const gchar *element_name,
- const gchar **names,
- const gchar **values,
+ const char *element_name,
+ const char **names,
+ const char **values,
gpointer user_data,
GError **error)
{
@@ -8764,7 +8764,7 @@ layout_start_element (GtkBuildableParseContext *context,
static void
layout_text (GtkBuildableParseContext *context,
- const gchar *text,
+ const char *text,
gsize text_len,
gpointer user_data,
GError **error)
@@ -8816,7 +8816,7 @@ static gboolean
gtk_widget_buildable_custom_tag_start (GtkBuildable *buildable,
GtkBuilder *builder,
GObject *child,
- const gchar *tagname,
+ const char *tagname,
GtkBuildableParser *parser,
gpointer *parser_data)
{
@@ -8867,7 +8867,7 @@ static void
gtk_widget_buildable_custom_tag_end (GtkBuildable *buildable,
GtkBuilder *builder,
GObject *child,
- const gchar *tagname,
+ const char *tagname,
gpointer data)
{
}
@@ -8942,7 +8942,7 @@ static void
gtk_widget_buildable_custom_finished (GtkBuildable *buildable,
GtkBuilder *builder,
GObject *child,
- const gchar *tagname,
+ const char *tagname,
gpointer user_data)
{
if (strcmp (tagname, "accessibility") == 0)
@@ -8976,7 +8976,7 @@ gtk_widget_buildable_custom_finished (GtkBuildable *buildable,
if (i < n_actions)
{
- const gchar *description;
+ const char *description;
if (action_data->translatable && action_data->description->len)
description = _gtk_builder_parser_translate (gtk_builder_get_translation_domain (builder),
@@ -10580,7 +10580,7 @@ _gtk_widget_get_action_muxer (GtkWidget *widget,
*/
void
gtk_widget_insert_action_group (GtkWidget *widget,
- const gchar *name,
+ const char *name,
GActionGroup *group)
{
GtkActionMuxer *muxer;
@@ -10600,7 +10600,7 @@ gtk_widget_insert_action_group (GtkWidget *widget,
* GtkBuilder automated templates *
****************************************************************/
static AutomaticChildClass *
-template_child_class_new (const gchar *name,
+template_child_class_new (const char *name,
gboolean internal_child,
gssize offset)
{
@@ -10766,7 +10766,7 @@ gtk_widget_init_template (GtkWidget *widget)
* there is no infinite recursion.
*/
if (!gtk_builder_extend_with_template (builder, G_OBJECT (widget), class_type,
- (const gchar *)g_bytes_get_data (template->data, NULL),
+ (const char *)g_bytes_get_data (template->data, NULL),
g_bytes_get_size (template->data),
&error))
{
@@ -10862,7 +10862,7 @@ gtk_widget_class_set_template (GtkWidgetClass *widget_class,
*/
void
gtk_widget_class_set_template_from_resource (GtkWidgetClass *widget_class,
- const gchar *resource_name)
+ const char *resource_name)
{
GError *error = NULL;
GBytes *bytes = NULL;
@@ -10907,7 +10907,7 @@ gtk_widget_class_set_template_from_resource (GtkWidgetClass *widget_class,
*/
void
gtk_widget_class_bind_template_callback_full (GtkWidgetClass *widget_class,
- const gchar *callback_name,
+ const char *callback_name,
GCallback callback_symbol)
{
GtkWidgetTemplate *template;
@@ -10990,7 +10990,7 @@ gtk_widget_class_set_template_scope (GtkWidgetClass *widget_class,
*/
void
gtk_widget_class_bind_template_child_full (GtkWidgetClass *widget_class,
- const gchar *name,
+ const char *name,
gboolean internal_child,
gssize struct_offset)
{
@@ -11028,7 +11028,7 @@ gtk_widget_class_bind_template_child_full (GtkWidgetClass *widget_class,
GObject *
gtk_widget_get_template_child (GtkWidget *widget,
GType widget_type,
- const gchar *name)
+ const char *name)
{
GHashTable *auto_child_hash;
GObject *ret = NULL;