[gnome-software] Rename gs_app_clear_quirk as gs_app_remove_quirk
- From: Joaquim Manuel Pereira Rocha <jrocha src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-software] Rename gs_app_clear_quirk as gs_app_remove_quirk
- Date: Wed, 20 Apr 2016 12:58:31 +0000 (UTC)
commit b2511fef6ffa534f6dc96d2e19d9852ba3ebcd1d
Author: Joaquim Rocha <jrocha endlessm com>
Date: Wed Apr 20 14:52:07 2016 +0200
Rename gs_app_clear_quirk as gs_app_remove_quirk
Using 'clear' implies that the quirk gets somehow reset or cleaned when
the function really removes it instead.
src/gs-app.c | 4 ++--
src/gs-app.h | 3 +--
src/plugins/gs-plugin-dummy.c | 2 +-
3 files changed, 4 insertions(+), 5 deletions(-)
---
diff --git a/src/gs-app.c b/src/gs-app.c
index 26e7d6b..e811af1 100644
--- a/src/gs-app.c
+++ b/src/gs-app.c
@@ -2134,10 +2134,10 @@ gs_app_add_quirk (GsApp *app, AsAppQuirk quirk)
}
/**
- * gs_app_clear_quirk:
+ * gs_app_remove_quirk:
**/
void
-gs_app_clear_quirk (GsApp *app, AsAppQuirk quirk)
+gs_app_remove_quirk (GsApp *app, AsAppQuirk quirk)
{
g_return_if_fail (GS_IS_APP (app));
diff --git a/src/gs-app.h b/src/gs-app.h
index 0adaa79..a868b58 100644
--- a/src/gs-app.h
+++ b/src/gs-app.h
@@ -239,12 +239,11 @@ gboolean gs_app_has_quirk (GsApp *app,
AsAppQuirk quirk);
void gs_app_add_quirk (GsApp *app,
AsAppQuirk quirk);
-void gs_app_clear_quirk (GsApp *app,
+void gs_app_remove_quirk (GsApp *app,
AsAppQuirk quirk);
GError *gs_app_get_last_error (GsApp *app);
void gs_app_set_last_error (GsApp *app,
GError *error);
-
G_END_DECLS
#endif /* __GS_APP_H */
diff --git a/src/plugins/gs-plugin-dummy.c b/src/plugins/gs-plugin-dummy.c
index e1fa82a..2672b4b 100644
--- a/src/plugins/gs-plugin-dummy.c
+++ b/src/plugins/gs-plugin-dummy.c
@@ -180,7 +180,7 @@ gs_plugin_dummy_poll_cb (gpointer user_data)
gs_app_add_quirk (app, AS_APP_QUIRK_PROVENANCE);
} else {
g_debug ("about to make app 3rd party");
- gs_app_clear_quirk (app, AS_APP_QUIRK_PROVENANCE);
+ gs_app_remove_quirk (app, AS_APP_QUIRK_PROVENANCE);
}
/* continue polling */
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]