atspi_action_do_action_name: change parameter type 42/136542/1 accepted/tizen/unified/20170711.181149 submit/tizen/20170707.071852 submit/tizen/20170711.023244
authorShinwoo Kim <cinoo.kim@samsung.com>
Fri, 30 Jun 2017 06:50:52 +0000 (15:50 +0900)
committerShinwoo Kim <cinoo.kim@samsung.com>
Fri, 30 Jun 2017 06:56:41 +0000 (15:56 +0900)
The name is not changed in atspi_action_do_action_name.
So the type of name should be const gchar*

Change-Id: I6a9329ea34ef566dd444cae5112dead99ef4a9ce

atspi/atspi-action.c
atspi/atspi-action.h

index d4e963e..ccf05bd 100644 (file)
@@ -224,7 +224,7 @@ atspi_action_do_action (AtspiAction *obj, gint i, GError **error)
  * Returns: #TRUE if the action is successfully invoked, otherwise #FALSE.
  **/
 gboolean
-atspi_action_do_action_name (AtspiAction *obj, gchar *name, GError **error)
+atspi_action_do_action_name (AtspiAction *obj, const gchar *name, GError **error)
 {
   const char *action_name = name;
   dbus_bool_t retval = FALSE;
index 00f3a2e..d30395e 100644 (file)
@@ -57,7 +57,7 @@ gchar * atspi_action_get_key_binding (AtspiAction *obj, gint i, GError **error);
 gchar * atspi_action_get_localized_name (AtspiAction *obj, gint i, GError **error);
 
 gboolean atspi_action_do_action (AtspiAction *obj, gint i, GError **error);
-gboolean atspi_action_do_action_name (AtspiAction *obj, gchar *name, GError **error);
+gboolean atspi_action_do_action_name (AtspiAction *obj, const gchar *name, GError **error);
 
 #ifndef ATSPI_DISABLE_DEPRECATED
 gchar * atspi_action_get_description (AtspiAction *obj, gint i, GError **error);