Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
phosh
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
150
Issues
150
List
Boards
Labels
Milestones
Merge Requests
23
Merge Requests
23
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Packages & Registries
Packages & Registries
Container Registry
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Librem5
phosh
Commits
c8b144cc
Commit
c8b144cc
authored
Jun 24, 2019
by
Guido Gunther
Committed by
Guido Gunther
Jul 09, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
favorites: Drop custom drawing
Signed-off-by:
Guido Günther
<
guido.gunther@puri.sm
>
parent
58fb5894
Pipeline
#21180
passed with stages
in 4 minutes and 56 seconds
Changes
3
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
7 additions
and
25 deletions
+7
-25
src/favorites.c
src/favorites.c
+0
-24
src/style.css
src/style.css
+6
-0
src/ui/favorites.ui
src/ui/favorites.ui
+1
-1
No files found.
src/favorites.c
View file @
c8b144cc
...
...
@@ -252,24 +252,6 @@ favorites_changed (GSettings *settings,
}
static
gboolean
draw_cb
(
GtkWidget
*
widget
,
cairo_t
*
cr
,
gpointer
unused
)
{
GtkStyleContext
*
context
=
gtk_widget_get_style_context
(
widget
);
GdkRGBA
c
;
G_GNUC_BEGIN_IGNORE_DEPRECATIONS
gtk_style_context_get_background_color
(
context
,
gtk_style_context_get_state
(
context
),
&
c
);
G_GNUC_END_IGNORE_DEPRECATIONS
cairo_set_source_rgba
(
cr
,
c
.
red
,
c
.
green
,
c
.
blue
,
0
.
8
);
cairo_set_operator
(
cr
,
CAIRO_OPERATOR_SOURCE
);
cairo_paint
(
cr
);
return
FALSE
;
}
static
gboolean
evbox_button_press_event_cb
(
PhoshFavorites
*
self
,
GdkEventButton
*
event
)
{
...
...
@@ -293,12 +275,6 @@ phosh_favorites_constructed (GObject *object)
gtk_window_set_decorated
(
GTK_WINDOW
(
self
),
FALSE
);
gtk_window_resize
(
GTK_WINDOW
(
self
),
width
,
height
);
gtk_widget_realize
(
GTK_WIDGET
(
self
));
gtk_widget_set_app_paintable
(
GTK_WIDGET
(
self
),
TRUE
);
g_signal_connect
(
G_OBJECT
(
self
),
"draw"
,
G_CALLBACK
(
draw_cb
),
NULL
);
/* Close on click */
g_signal_connect_swapped
(
priv
->
evbox_favorites
,
"button_press_event"
,
...
...
src/style.css
View file @
c8b144cc
...
...
@@ -68,6 +68,12 @@ phosh-home, .phosh-panel {
color
:
white
;
}
/* Overview (app switcher, favorites) */
.phosh-overview
{
background
:
black
;
}
.phosh-favorite
{
background
:
none
;
border
:
none
;
...
...
src/ui/favorites.ui
View file @
c8b144cc
...
...
@@ -108,7 +108,7 @@
</object>
</child>
<style>
<class
name=
"phosh-
favorites
"
/>
<class
name=
"phosh-
overview
"
/>
</style>
</template>
</interface>
Write
Preview
Markdown
is supported
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