[gnome-logs] Rename some functions
- From: Jonathan Kang <jonathankang src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-logs] Rename some functions
- Date: Thu, 5 Jan 2017 14:00:30 +0000 (UTC)
commit 4c10e48d679894db95c91f0b9c724789d1685802
Author: Jonathan Kang <jonathan121537 gmail com>
Date: Thu Jan 5 21:52:50 2017 +0800
Rename some functions
Rename gl-*-get_current_boot_time to gl-*-get_boot_time. Since we pass
boot_match to these functions, the return value is boot time regrading
to a specific boot_match instead of the current boot time.
src/gl-eventview.c | 6 +++---
src/gl-eventview.h | 4 ++--
src/gl-eventviewlist.c | 8 ++++----
src/gl-eventviewlist.h | 4 ++--
src/gl-journal-model.c | 6 +++---
src/gl-journal-model.h | 2 +-
src/gl-journal.c | 4 ++--
src/gl-journal.h | 4 ++--
src/gl-window.c | 2 +-
9 files changed, 20 insertions(+), 20 deletions(-)
---
diff --git a/src/gl-eventview.c b/src/gl-eventview.c
index df6c83d..52d511c 100644
--- a/src/gl-eventview.c
+++ b/src/gl-eventview.c
@@ -71,8 +71,8 @@ gl_event_view_get_output_logs (GlEventView *view)
}
gchar *
-gl_event_view_get_current_boot_time (GlEventView *view,
- const gchar *boot_match)
+gl_event_view_get_boot_time (GlEventView *view,
+ const gchar *boot_match)
{
GlEventViewPrivate *priv;
GlEventViewList *events;
@@ -80,7 +80,7 @@ gl_event_view_get_current_boot_time (GlEventView *view,
priv = gl_event_view_get_instance_private (view);
events = GL_EVENT_VIEW_LIST (priv->events);
- return gl_event_view_list_get_current_boot_time (events, boot_match);
+ return gl_event_view_list_get_boot_time (events, boot_match);
}
GArray *
diff --git a/src/gl-eventview.h b/src/gl-eventview.h
index 3e34c87..1b59395 100644
--- a/src/gl-eventview.h
+++ b/src/gl-eventview.h
@@ -52,8 +52,8 @@ void gl_event_view_set_sort_order (GlEventView *view, GlSortOrder sort_order);
GArray * gl_event_view_get_boot_ids (GlEventView *view);
void gl_event_view_view_boot (GlEventView *view, const gchar *match);
gchar * gl_event_view_get_output_logs (GlEventView *view);
-gchar * gl_event_view_get_current_boot_time (GlEventView *view,
- const gchar *boot_match);
+gchar * gl_event_view_get_boot_time (GlEventView *view,
+ const gchar *boot_match);
G_END_DECLS
diff --git a/src/gl-eventviewlist.c b/src/gl-eventviewlist.c
index c0c7580..c385420 100644
--- a/src/gl-eventviewlist.c
+++ b/src/gl-eventviewlist.c
@@ -200,15 +200,15 @@ gl_event_view_list_get_detail_entry (GlEventViewList *view)
}
gchar *
-gl_event_view_list_get_current_boot_time (GlEventViewList *view,
- const gchar *boot_match)
+gl_event_view_list_get_boot_time (GlEventViewList *view,
+ const gchar *boot_match)
{
GlEventViewListPrivate *priv;
priv = gl_event_view_list_get_instance_private (view);
- return gl_journal_model_get_current_boot_time (priv->journal_model,
- boot_match);
+ return gl_journal_model_get_boot_time (priv->journal_model,
+ boot_match);
}
GArray *
diff --git a/src/gl-eventviewlist.h b/src/gl-eventviewlist.h
index 7d951b4..9c96870 100644
--- a/src/gl-eventviewlist.h
+++ b/src/gl-eventviewlist.h
@@ -39,8 +39,8 @@ void gl_event_view_list_set_sort_order (GlEventViewList *view, GlSortOrder sort
void gl_event_view_list_view_boot (GlEventViewList *view, const gchar *match);
GArray * gl_event_view_list_get_boot_ids (GlEventViewList *view);
gchar * gl_event_view_list_get_output_logs (GlEventViewList *view);
-gchar * gl_event_view_list_get_current_boot_time (GlEventViewList *view,
- const gchar *boot_match);
+gchar * gl_event_view_list_get_boot_time (GlEventViewList *view,
+ const gchar *boot_match);
G_END_DECLS
diff --git a/src/gl-journal-model.c b/src/gl-journal-model.c
index b73ea71..0f3b8f5 100644
--- a/src/gl-journal-model.c
+++ b/src/gl-journal-model.c
@@ -952,10 +952,10 @@ search_in_entry (GlJournalEntry *entry,
}
gchar *
-gl_journal_model_get_current_boot_time (GlJournalModel *model,
- const gchar *boot_match)
+gl_journal_model_get_boot_time (GlJournalModel *model,
+ const gchar *boot_match)
{
- return gl_journal_get_current_boot_time (model->journal, boot_match);
+ return gl_journal_get_boot_time (model->journal, boot_match);
}
GArray *
diff --git a/src/gl-journal-model.h b/src/gl-journal-model.h
index 110c150..5823282 100644
--- a/src/gl-journal-model.h
+++ b/src/gl-journal-model.h
@@ -65,7 +65,7 @@ void gl_journal_model_fetch_more_entries (GlJourn
GArray * gl_journal_model_get_boot_ids (GlJournalModel *model);
-gchar * gl_journal_model_get_current_boot_time (GlJournalModel *model,
+gchar * gl_journal_model_get_boot_time (GlJournalModel *model,
const gchar *boot_match);
void gl_query_set_search_type (GlQuery *query,
diff --git a/src/gl-journal.c b/src/gl-journal.c
index a8cddaa..d55b157 100644
--- a/src/gl-journal.c
+++ b/src/gl-journal.c
@@ -65,8 +65,8 @@ gl_journal_error_quark (void)
}
gchar *
-gl_journal_get_current_boot_time (GlJournal *journal,
- const gchar *boot_match)
+gl_journal_get_boot_time (GlJournal *journal,
+ const gchar *boot_match)
{
GArray *boot_ids;
gchar *time;
diff --git a/src/gl-journal.h b/src/gl-journal.h
index 648ecb0..91612da 100644
--- a/src/gl-journal.h
+++ b/src/gl-journal.h
@@ -76,8 +76,8 @@ void gl_journal_set_start_position (GlJournal *journal, guint64 until_timestamp)
GArray * gl_journal_get_boot_ids (GlJournal *journal);
GlJournalEntry * gl_journal_previous (GlJournal *journal);
GlJournal * gl_journal_new (void);
-gchar * gl_journal_get_current_boot_time (GlJournal *journal,
- const gchar *boot_match);
+gchar * gl_journal_get_boot_time (GlJournal *journal,
+ const gchar *boot_match);
guint64 gl_journal_entry_get_timestamp (GlJournalEntry *entry);
const gchar * gl_journal_entry_get_message (GlJournalEntry *entry);
diff --git a/src/gl-window.c b/src/gl-window.c
index 84b97d3..d1780bd 100644
--- a/src/gl-window.c
+++ b/src/gl-window.c
@@ -272,7 +272,7 @@ on_view_boot (GSimpleAction *action,
gl_event_view_view_boot (event, boot_match);
- current_boot = gl_event_view_get_current_boot_time (event, boot_match);
+ current_boot = gl_event_view_get_boot_time (event, boot_match);
if (current_boot == NULL)
{
g_debug ("Error fetching the time using boot_match");
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]