Merge lp:~3v1n0/unity/force-quit-override-css-bg into lp:unity

Proposed by Marco Trevisan (Treviño)
Status: Merged
Approved by: Stephen M. Webb
Approved revision: no longer in the source branch.
Merged at revision: 3993
Proposed branch: lp:~3v1n0/unity/force-quit-override-css-bg
Merge into: lp:unity
Diff against target: 18 lines (+8/-0)
1 file modified
decorations/DecorationsForceQuitDialog.cpp (+8/-0)
To merge this branch: bzr merge lp:~3v1n0/unity/force-quit-override-css-bg
Reviewer Review Type Date Requested Status
PS Jenkins bot (community) continuous-integration Approve
Stephen M. Webb (community) Approve
Review via email: mp+263448@code.launchpad.net

Commit message

DecorationsForceQuitDialog: override the background of the window with transparent color

Description of the change

DecorationsForceQuitDialog: override the background of the window with transparent color

To post a comment you must log in.
Revision history for this message
PS Jenkins bot (ps-jenkins) wrote :
review: Needs Fixing (continuous-integration)
Revision history for this message
Stephen M. Webb (bregma) wrote :

I'm god with this change once we get a clean CI build.

review: Approve
Revision history for this message
PS Jenkins bot (ps-jenkins) wrote :
review: Needs Fixing (continuous-integration)
Revision history for this message
PS Jenkins bot (ps-jenkins) wrote :
review: Needs Fixing (continuous-integration)
Revision history for this message
PS Jenkins bot (ps-jenkins) wrote :
review: Approve (continuous-integration)

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'decorations/DecorationsForceQuitDialog.cpp'
2--- decorations/DecorationsForceQuitDialog.cpp 2015-06-12 12:15:40 +0000
3+++ decorations/DecorationsForceQuitDialog.cpp 2015-07-01 01:36:32 +0000
4@@ -169,6 +169,14 @@
5 gtk_widget_set_visual(GTK_WIDGET(self), gdk_screen_get_rgba_visual(screen));
6 gtk_widget_realize(GTK_WIDGET(self));
7
8+ glib::Object<GtkCssProvider> style(gtk_css_provider_new());
9+ gtk_css_provider_load_from_data(style, R"(
10+ * { background-color: transparent; }
11+ )", -1, nullptr);
12+
13+ auto* style_ctx = gtk_widget_get_style_context(GTK_WIDGET(self));
14+ gtk_style_context_add_provider(style_ctx, glib::object_cast<GtkStyleProvider>(style), GTK_STYLE_PROVIDER_PRIORITY_APPLICATION);
15+
16 gtk_container_add(GTK_CONTAINER(self), sheet_style_dialog_new(main_dialog, parent_xid, parent_pid));
17
18 gtk_window_set_modal(self, TRUE);