[gnome-flashback] input-sources: add gf_input_sources_create_button



commit 4e32784f37d2bbce62ddba891f277ee2bff269c1
Author: Alberts Muktupāvels <alberts muktupavels gmail com>
Date:   Sat Feb 8 18:17:19 2020 +0200

    input-sources: add gf_input_sources_create_button

 gnome-flashback/libinput-sources/gf-input-sources.c |  9 ++++++++-
 gnome-flashback/libinput-sources/gf-input-sources.h | 10 ++++++----
 2 files changed, 14 insertions(+), 5 deletions(-)
---
diff --git a/gnome-flashback/libinput-sources/gf-input-sources.c 
b/gnome-flashback/libinput-sources/gf-input-sources.c
index bd5a328..c3d2544 100644
--- a/gnome-flashback/libinput-sources/gf-input-sources.c
+++ b/gnome-flashback/libinput-sources/gf-input-sources.c
@@ -1,5 +1,5 @@
 /*
- * Copyright (C) 2015-2019 Alberts Muktupāvels
+ * Copyright (C) 2015-2020 Alberts Muktupāvels
  *
  * This program is free software: you can redistribute it and/or modify
  * it under the terms of the GNU General Public License as published by
@@ -24,6 +24,7 @@
 
 #include "dbus/gf-input-sources-gen.h"
 #include "gf-ibus-manager.h"
+#include "gf-input-sources-button.h"
 #include "gf-input-sources.h"
 #include "gf-input-source-ibus.h"
 #include "gf-input-source-manager.h"
@@ -649,3 +650,9 @@ gf_input_sources_new (void)
 {
   return g_object_new (GF_TYPE_INPUT_SOURCES, NULL);
 }
+
+GtkWidget *
+gf_input_sources_create_button (GfInputSources *self)
+{
+  return gf_input_sources_button_new (self->input_source_manager);
+}
diff --git a/gnome-flashback/libinput-sources/gf-input-sources.h 
b/gnome-flashback/libinput-sources/gf-input-sources.h
index f760476..665e4df 100644
--- a/gnome-flashback/libinput-sources/gf-input-sources.h
+++ b/gnome-flashback/libinput-sources/gf-input-sources.h
@@ -1,5 +1,5 @@
 /*
- * Copyright (C) 2015 Alberts Muktupāvels
+ * Copyright (C) 2015-2020 Alberts Muktupāvels
  *
  * This program is free software: you can redistribute it and/or modify
  * it under the terms of the GNU General Public License as published by
@@ -18,15 +18,17 @@
 #ifndef GF_INPUT_SOURCES_H
 #define GF_INPUT_SOURCES_H
 
-#include <glib-object.h>
+#include <gtk/gtk.h>
 
 G_BEGIN_DECLS
 
-#define GF_TYPE_INPUT_SOURCES gf_input_sources_get_type ()
+#define GF_TYPE_INPUT_SOURCES (gf_input_sources_get_type ())
 G_DECLARE_FINAL_TYPE (GfInputSources, gf_input_sources,
                       GF, INPUT_SOURCES, GObject)
 
-GfInputSources *gf_input_sources_new (void);
+GfInputSources *gf_input_sources_new           (void);
+
+GtkWidget      *gf_input_sources_create_button (GfInputSources *self);
 
 G_END_DECLS
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]