summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJonathan Kang <jonathan121537@gmail.com>2017-01-05 21:52:50 +0800
committerJonathan Kang <jonathan121537@gmail.com>2017-01-05 21:52:50 +0800
commit4c10e48d679894db95c91f0b9c724789d1685802 (patch)
treeb8ec74acf04d0fcc07087d85004ebc3fde0023b5 /src
parent15d52ca7135a8a4a1acebad70ab2ada5293c4d38 (diff)
downloadgnome-logs-4c10e48d679894db95c91f0b9c724789d1685802.tar.gz
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.
Diffstat (limited to 'src')
-rw-r--r--src/gl-eventview.c6
-rw-r--r--src/gl-eventview.h4
-rw-r--r--src/gl-eventviewlist.c8
-rw-r--r--src/gl-eventviewlist.h4
-rw-r--r--src/gl-journal-model.c6
-rw-r--r--src/gl-journal-model.h2
-rw-r--r--src/gl-journal.c4
-rw-r--r--src/gl-journal.h4
-rw-r--r--src/gl-window.c2
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");