diff options
Diffstat (limited to 'libempathy-gtk')
-rw-r--r-- | libempathy-gtk/empathy-account-widget.c | 10 | ||||
-rw-r--r-- | libempathy-gtk/empathy-account-widget.h | 3 |
2 files changed, 13 insertions, 0 deletions
diff --git a/libempathy-gtk/empathy-account-widget.c b/libempathy-gtk/empathy-account-widget.c index ae210a42e..b74a3095e 100644 --- a/libempathy-gtk/empathy-account-widget.c +++ b/libempathy-gtk/empathy-account-widget.c @@ -1870,3 +1870,13 @@ empathy_account_widget_get_default_display_name (EmpathyAccountWidget *self) return default_display_name; } + +/* Used by subclass to indicate that widget contains pending changes */ +void +empathy_account_widget_changed (EmpathyAccountWidget *self) +{ + EmpathyAccountWidgetPriv *priv = GET_PRIV (self); + + account_widget_handle_control_buttons_sensitivity (self); + priv->contains_pending_changes = TRUE; +} diff --git a/libempathy-gtk/empathy-account-widget.h b/libempathy-gtk/empathy-account-widget.h index 56ba9d06e..5b994c277 100644 --- a/libempathy-gtk/empathy-account-widget.h +++ b/libempathy-gtk/empathy-account-widget.h @@ -73,6 +73,9 @@ void empathy_account_widget_discard_pending_changes gchar * empathy_account_widget_get_default_display_name ( EmpathyAccountWidget *widget); +/* protected methods */ +void empathy_account_widget_changed (EmpathyAccountWidget *widget); + G_END_DECLS #endif /* __EMPATHY_ACCOUNT_WIDGET_H__ */ |