-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add initial shell based on GNOME Control Center code.
- Loading branch information
1 parent
5b8a96f
commit f2b6342
Showing
8 changed files
with
101 additions
and
31 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,4 +8,5 @@ compile_commands.json | |
omp | ||
PKGBUILD | ||
TODO | ||
/src/clang-format | ||
/subprojects/blueprint-compiler |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
#include <adwaita.h> | ||
|
||
#include "context-panel.h" | ||
|
||
struct _OMPContextPanel { | ||
AdwBin parent; | ||
}; | ||
|
||
G_DEFINE_TYPE (OMPContextPanel, omp_context_panel, ADW_TYPE_BIN); | ||
|
||
static void | ||
omp_context_panel_class_init (OMPContextPanelClass* klass) | ||
{ | ||
GtkWidgetClass* widget_class = GTK_WIDGET_CLASS (klass); | ||
|
||
gtk_widget_class_set_template_from_resource ( | ||
widget_class, | ||
"/org/gnome/control-center/bluetooth/cc-bluetooth-panel.ui" | ||
); | ||
} | ||
|
||
static void | ||
omp_context_panel_init (OMPContextPanel* self) | ||
{ | ||
gtk_widget_init_template (GTK_WIDGET (self)); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
#pragma once | ||
|
||
#include <adwaita.h> | ||
#include <gtk/gtk.h> | ||
|
||
G_BEGIN_DECLS | ||
|
||
#define OMP_TYPE_CONTEXT_PANEL (omp_context_panel_get_type ()) | ||
G_DECLARE_FINAL_TYPE ( | ||
OMPContextPanel, omp_context_panel, OMP, CONTEXT_PANEL, AdwBin | ||
) | ||
|
||
G_END_DECLS |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
context_sources = [ | ||
'context-panel.c', | ||
] | ||
|
||
foreach context_source: context_sources | ||
sources += 'panels/context/' + context_source | ||
endforeach |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
panels = [ | ||
'context', | ||
# 'collection', | ||
# 'queue', | ||
# 'playlists', | ||
] | ||
|
||
foreach panel: panels | ||
subdir(panel) | ||
endforeach |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters