Commit 2bf160b5 authored by Alberts Muktupāvels's avatar Alberts Muktupāvels
Browse files

input-sources: fix GfCandidatePopup style

parent 92723ff0
......@@ -10,6 +10,29 @@ gf-popup-window.solid {
border-radius: 0px;
}
#gf-candidate-popup {
border-radius: 3px;
}
#gf-candidate-popup.solid {
border-radius: 0px;
}
#gf-candidate-popup gf-candidate-box label {
padding: 4px 6px;
}
#gf-candidate-popup gf-candidate-box label:last-child {
padding-left: 0px;
}
#gf-candidate-popup gf-candidate-box:selected,
#gf-candidate-popup gf-candidate-box:hover {
background-color: #215d9c;
color: #ffffff;
border-radius: 3px;
}
#gf-input-source-popup {
}
......
......@@ -10,6 +10,29 @@ gf-popup-window.solid {
border-radius: 0px;
}
#gf-candidate-popup {
border-radius: 3px;
}
#gf-candidate-popup.solid {
border-radius: 0px;
}
#gf-candidate-popup gf-candidate-box label {
padding: 4px 6px;
}
#gf-candidate-popup gf-candidate-box label:last-child {
padding-left: 0px;
}
#gf-candidate-popup gf-candidate-box:selected,
#gf-candidate-popup gf-candidate-box:hover {
background-color: #4a90d9;
color: #ffffff;
border-radius: 3px;
}
#gf-input-source-popup {
}
......
......@@ -10,6 +10,29 @@ gf-popup-window.solid {
border-radius: 0px;
}
#gf-candidate-popup {
border-radius: 3px;
}
#gf-candidate-popup.solid {
border-radius: 0px;
}
#gf-candidate-popup gf-candidate-box label {
padding: 4px 6px;
}
#gf-candidate-popup gf-candidate-box label:last-child {
padding-left: 0px;
}
#gf-candidate-popup gf-candidate-box:selected,
#gf-candidate-popup gf-candidate-box:hover {
background-color: #4a90d9;
color: #ffffff;
border-radius: 3px;
}
#gf-input-source-popup {
}
......
......@@ -131,7 +131,7 @@ gf_candidate_area_init (GfCandidateArea *area)
GtkIconSize size;
GtkWidget *image;
area->candidate_box = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 0);
area->candidate_box = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 2);
gtk_container_add (GTK_CONTAINER (area), area->candidate_box);
gtk_widget_show (area->candidate_box);
......
......@@ -141,6 +141,8 @@ gf_candidate_box_init (GfCandidateBox *box)
box->candidate_label = gtk_label_new (NULL);
gtk_container_add (GTK_CONTAINER (hbox), box->candidate_label);
gtk_widget_show (box->candidate_label);
gtk_widget_set_valign (GTK_WIDGET (box), GTK_ALIGN_CENTER);
}
GtkWidget*
......
......@@ -342,7 +342,7 @@ gf_candidate_popup_init (GfCandidatePopup *popup)
gtk_window_set_focus_on_map (window, TRUE);
gtk_window_set_type_hint (window, GDK_WINDOW_TYPE_HINT_NORMAL);
layout = gtk_box_new (GTK_ORIENTATION_VERTICAL, 0);
layout = gtk_box_new (GTK_ORIENTATION_VERTICAL, 6);
gtk_container_add (GTK_CONTAINER (popup), layout);
gtk_widget_show (layout);
......@@ -364,6 +364,9 @@ gf_candidate_popup_init (GfCandidatePopup *popup)
G_CALLBACK (next_page_cb), popup);
g_signal_connect (popup->candidate_area, "candidate-clicked",
G_CALLBACK (candidate_clicked_cb), popup);
gtk_widget_set_name (GTK_WIDGET (popup), "gf-candidate-popup");
gtk_container_set_border_width (GTK_CONTAINER (popup), 10);
}
GfCandidatePopup *
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment