Commit 356e5d81 authored by Adrien Plazas's avatar Adrien Plazas

dialer: Style cleanup of the 'number' prop accessors

Use gchar instead of char, use GNOME style pointer spacing and name the
number parameter 'number'. This is all cosmetic but will make the code
look a bit more GNOME-like.
parent bf10961c
......@@ -384,7 +384,7 @@ hdy_dialer_init (HdyDialer *self)
* Returns: (transfer none): the current number in the display
const char*
const gchar *
hdy_dialer_get_number (HdyDialer *self)
HdyDialerPrivate *priv;
......@@ -398,22 +398,22 @@ hdy_dialer_get_number (HdyDialer *self)
* hdy_dialer_set_number:
* @self: a #HdyDialer
* @newnumber: (transfer none): the number to set
* @number: (transfer none): the number to set
* Set the currently displayed number.
hdy_dialer_set_number (HdyDialer *self,
const char *newnumber)
hdy_dialer_set_number (HdyDialer *self,
const gchar *number)
HdyDialerPrivate *priv;
g_return_if_fail (HDY_IS_DIALER (self));
g_return_if_fail (newnumber != NULL);
g_return_if_fail (number != NULL);
priv = hdy_dialer_get_instance_private (self);
g_string_assign (priv->number, newnumber);
g_string_assign (priv->number, number);
g_object_notify_by_pspec (G_OBJECT (self), props[PROP_NUMBER]);
......@@ -35,9 +35,9 @@ struct _HdyDialerClass
GtkWidget *hdy_dialer_new (void);
const char *hdy_dialer_get_number (HdyDialer *self);
void hdy_dialer_set_number (HdyDialer *self,
const char *newnumber);
const gchar *hdy_dialer_get_number (HdyDialer *self);
void hdy_dialer_set_number (HdyDialer *self,
const gchar *number);
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment