[gnome-builder] app: add helper to get the keybinding mode
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-builder] app: add helper to get the keybinding mode
- Date: Tue, 13 Oct 2015 07:11:08 +0000 (UTC)
commit e8f9d3d0a76dc0ca8a2a9303d1ef90f2020b396d
Author: Christian Hergert <chergert redhat com>
Date: Mon Oct 12 21:07:48 2015 -0700
app: add helper to get the keybinding mode
src/app/gb-application.c | 8 ++++++++
src/app/gb-application.h | 23 ++++++++++++-----------
2 files changed, 20 insertions(+), 11 deletions(-)
---
diff --git a/src/app/gb-application.c b/src/app/gb-application.c
index faf5fbe..46936f0 100644
--- a/src/app/gb-application.c
+++ b/src/app/gb-application.c
@@ -669,3 +669,11 @@ gb_application_get_started_at (GbApplication *self)
return self->started_at;
}
+
+const gchar *
+gb_application_get_keybindings_mode (GbApplication *self)
+{
+ g_return_val_if_fail (GB_IS_APPLICATION (self), NULL);
+
+ return gb_keybindings_get_mode (self->keybindings);
+}
diff --git a/src/app/gb-application.h b/src/app/gb-application.h
index c6bb8f5..578da6e 100644
--- a/src/app/gb-application.h
+++ b/src/app/gb-application.h
@@ -27,17 +27,18 @@ G_BEGIN_DECLS
G_DECLARE_FINAL_TYPE (GbApplication, gb_application, GB, APPLICATION, GtkApplication)
-GDateTime *gb_application_get_started_at (GbApplication *self);
-void gb_application_open_project_async (GbApplication *self,
- GFile *file,
- GPtrArray *additional_files,
- GCancellable *cancellable,
- GAsyncReadyCallback callback,
- gpointer user_data);
-gboolean gb_application_open_project_finish (GbApplication *self,
- GAsyncResult *result,
- GError **error);
-void gb_application_show_projects_window (GbApplication *self);
+GDateTime *gb_application_get_started_at (GbApplication *self);
+void gb_application_open_project_async (GbApplication *self,
+ GFile *file,
+ GPtrArray *additional_files,
+ GCancellable *cancellable,
+ GAsyncReadyCallback callback,
+ gpointer user_data);
+gboolean gb_application_open_project_finish (GbApplication *self,
+ GAsyncResult *result,
+ GError **error);
+void gb_application_show_projects_window (GbApplication *self);
+const gchar *gb_application_get_keybindings_mode (GbApplication *self);
G_END_DECLS
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]