window: add a nice style to the calendar listbox
This commit is contained in:
committed by
Erick Pérez Castellanos
parent
134d8678fe
commit
c3d34ae149
@@ -820,11 +820,18 @@ make_row_from_source (GcalWindow *window,
|
||||
{
|
||||
GcalWindowPrivate *priv = gcal_window_get_instance_private (window);
|
||||
GtkWidget *label, *icon, *separator, *checkbox, *box, *row;
|
||||
GtkStyleContext *context;
|
||||
GdkPixbuf *pixbuf;
|
||||
GdkRGBA color;
|
||||
|
||||
row = gtk_list_box_row_new ();
|
||||
|
||||
/* apply some nice styling */
|
||||
context = gtk_widget_get_style_context (row);
|
||||
gtk_style_context_add_class (context, "button");
|
||||
gtk_style_context_add_class (context, "flat");
|
||||
gtk_style_context_add_class (context, "menuitem");
|
||||
|
||||
/* main box */
|
||||
box = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 12);
|
||||
gtk_container_set_border_width (GTK_CONTAINER (box), 6);
|
||||
|
||||
Reference in New Issue
Block a user