Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
GNOME
gnome-flashback
Commits
57eca000
Commit
57eca000
authored
Feb 18, 2016
by
Alberts Muktupāvels
Browse files
audio-selection: initial version
parent
01f67d9f
Changes
7
Hide whitespace changes
Inline
Side-by-side
configure.ac
View file @
57eca000
...
...
@@ -119,6 +119,11 @@ PKG_CHECK_MODULES([GNOME_FLASHBACK], [
gtk+-3.0 >= $GTK_REQUIRED
])
PKG_CHECK_MODULES([AUDIO_SELECTION], [
gtk+-3.0 >= $GTK_REQUIRED
glib-2.0 >= $GLIB_REQUIRED
])
PKG_CHECK_MODULES([AUTOMOUNT_MANAGER], [
gtk+-3.0 >= $GTK_REQUIRED
gsettings-desktop-schemas >= $GSETTINGS_DESKTOP_SCHEMAS_REQUIRED
...
...
@@ -278,6 +283,7 @@ AC_CONFIG_FILES([
data/xsessions/Makefile
gnome-flashback/Makefile
gnome-flashback/libaudio-selection/Makefile
gnome-flashback/libautomount-manager/Makefile
gnome-flashback/libbluetooth-applet/Makefile
gnome-flashback/libcommon/Makefile
...
...
data/schemas/org.gnome.gnome-flashback.gschema.xml
View file @
57eca000
<schemalist
gettext-domain=
"gnome-flashback"
>
<schema
id=
"org.gnome.gnome-flashback"
path=
"/org/gnome/gnome-flashback/"
>
<key
name=
"audio-selection"
type=
"b"
>
<default>
true
</default>
<summary>
Audio device selection
</summary>
<description>
If set to true, then GNOME Flashback application will be used to provide audo device selection dialog.
</description>
</key>
<key
name=
"automount-manager"
type=
"b"
>
<default>
true
</default>
<summary>
Automount manager
</summary>
...
...
gnome-flashback/Makefile.am
View file @
57eca000
NULL
=
SUBDIRS
=
\
libaudio-selection
\
libautomount-manager
\
libbluetooth-applet
\
libcommon
\
...
...
@@ -52,6 +53,7 @@ gnome_flashback_LDFLAGS = \
gnome_flashback_LDADD
=
\
$(GNOME_FLASHBACK_LIBS)
\
$(top_builddir)
/gnome-flashback/libaudio-selection/libaudio-selection.la
\
$(top_builddir)
/gnome-flashback/libautomount-manager/libautomount-manager.la
\
$(top_builddir)
/gnome-flashback/libbluetooth-applet/libbluetooth-applet.la
\
$(top_builddir)
/gnome-flashback/libdesktop-background/libdesktop-background.la
\
...
...
gnome-flashback/gf-application.c
View file @
57eca000
...
...
@@ -21,6 +21,7 @@
#include
<gtk/gtk.h>
#include
"gf-application.h"
#include
"libaudio-selection/gf-audio-selection.h"
#include
"libautomount-manager/gsd-automount-manager.h"
#include
"libbluetooth-applet/gf-bluetooth-applet.h"
#include
"libdesktop-background/gf-desktop-background.h"
...
...
@@ -57,6 +58,7 @@ struct _GfApplication
FlashbackIdleMonitor
*
idle_monitor
;
FlashbackPolkit
*
polkit
;
FlashbackShell
*
shell
;
GfAudioSelection
*
audio_selection
;
GfBluetoothApplet
*
bluetooth
;
GfDesktopBackground
*
background
;
GfEndSessionDialog
*
dialog
;
...
...
@@ -154,6 +156,7 @@ settings_changed (GSettings *settings,
SETTING_CHANGED
(
idle_monitor
,
"idle-monitor"
,
flashback_idle_monitor_new
)
SETTING_CHANGED
(
polkit
,
"polkit"
,
flashback_polkit_new
)
SETTING_CHANGED
(
shell
,
"shell"
,
flashback_shell_new
)
SETTING_CHANGED
(
audio_selection
,
"audio-selection"
,
gf_audio_selection_new
)
SETTING_CHANGED
(
bluetooth
,
"bluetooth-applet"
,
gf_bluetooth_applet_new
)
SETTING_CHANGED
(
background
,
"desktop-background"
,
gf_desktop_background_new
)
SETTING_CHANGED
(
dialog
,
"end-session-dialog"
,
gf_end_session_dialog_new
)
...
...
@@ -198,6 +201,7 @@ gf_application_dispose (GObject *object)
g_clear_object
(
&
application
->
idle_monitor
);
g_clear_object
(
&
application
->
polkit
);
g_clear_object
(
&
application
->
shell
);
g_clear_object
(
&
application
->
audio_selection
);
g_clear_object
(
&
application
->
bluetooth
);
g_clear_object
(
&
application
->
background
);
g_clear_object
(
&
application
->
dialog
);
...
...
gnome-flashback/libaudio-selection/Makefile.am
0 → 100644
View file @
57eca000
NULL
=
noinst_LTLIBRARIES
=
\
libaudio-selection.la
\
$(NULL)
libaudio_selection_la_CPPFLAGS
=
\
-I
$(top_builddir)
/gnome-flashback/libaudio-selection
\
$(NULL)
libaudio_selection_la_CFLAGS
=
\
$(AUDIO_SELECTION_CFLAGS)
\
$(WARN_CFLAGS)
\
$(AM_CFLAGS)
\
$(NULL)
libaudio_selection_la_SOURCES
=
\
gf-audio-selection.c
\
gf-audio-selection.h
\
$(NULL)
libaudio_selection_la_LDFLAGS
=
\
$(WARN_LDFLAGS)
\
$(AM_LDFLAGS)
\
$(NULL)
libaudio_selection_la_LIBADD
=
\
$(AUDIO_SELECTION_LIBS)
\
$(NULL)
-include
$(top_srcdir)/git.mk
gnome-flashback/libaudio-selection/gf-audio-selection.c
0 → 100644
View file @
57eca000
/*
* Copyright (C) 2016 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
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#include
"config.h"
#include
"gf-audio-selection.h"
struct
_GfAudioSelection
{
GObject
parent
;
};
G_DEFINE_TYPE
(
GfAudioSelection
,
gf_audio_selection
,
G_TYPE_OBJECT
)
static
void
gf_audio_selection_class_init
(
GfAudioSelectionClass
*
audio_selection_class
)
{
}
static
void
gf_audio_selection_init
(
GfAudioSelection
*
audio_selection
)
{
}
GfAudioSelection
*
gf_audio_selection_new
(
void
)
{
return
g_object_new
(
GF_TYPE_AUDIO_SELECTION
,
NULL
);
}
gnome-flashback/libaudio-selection/gf-audio-selection.h
0 → 100644
View file @
57eca000
/*
* Copyright (C) 2016 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
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#ifndef GF_AUDIO_SELECTION_H
#define GF_AUDIO_SELECTION_H
#include
<glib-object.h>
G_BEGIN_DECLS
#define GF_TYPE_AUDIO_SELECTION gf_audio_selection_get_type ()
G_DECLARE_FINAL_TYPE
(
GfAudioSelection
,
gf_audio_selection
,
GF
,
AUDIO_SELECTION
,
GObject
)
GfAudioSelection
*
gf_audio_selection_new
(
void
);
G_END_DECLS
#endif
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment