event-widget: turn into a GtkBin subclass
The current GcalEventWidget implementation is a direct GtkWidget subclass, which means we have to take care of all the implementation details such as raising GdkWindows and managing the drawing all by ourselves. The event widget, however, can be easily described through a GtkBuilder file. This would simplify the implementation and makes us maintain less code. Fix that by making GcalEventWidget a GtkBin subclass.
This commit is contained in:
+6
-1
@@ -257,7 +257,12 @@
|
||||
" alpha(%2$s, 0) 10px,"\
|
||||
" alpha(%2$s, 0) 16px,"\
|
||||
" %2$s 17px);"\
|
||||
"}"
|
||||
"}"\
|
||||
".color-%1$d.slanted box { margin: 0 16px 0 16px; }"\
|
||||
".color-%1$d.slanted-start box { margin-left: 16px; }"\
|
||||
".color-%1$d.slanted-start:dir(rtl) box { margin-right: 16px; }"\
|
||||
".color-%1$d.slanted-end box { margin-right: 16px; }"\
|
||||
".color-%1$d.slanted-end:dir(rtl) box { margin-left: 16px; }"
|
||||
|
||||
#endif /* CSS_CODE_H */
|
||||
|
||||
|
||||
Reference in New Issue
Block a user