Commit e722599a authored by Bastien Nocera's avatar Bastien Nocera
Browse files

common: Use new listbox helpers
parent 5c732074
......@@ -29,6 +29,7 @@
#include <gio/gio.h>
#include <gtk/gtk.h>
#include "shell/list-box-helper.h"
#include "cc-common-language.h"
#include "cc-util.h"
......@@ -362,24 +363,6 @@ row_activated (GtkListBox *box,
set_locale_id (chooser, new_locale_id);
static void
update_header_func (GtkListBoxRow *row,
GtkListBoxRow *before,
gpointer user_data)
GtkWidget *current;
if (before == NULL)
current = gtk_list_box_row_get_header (row);
if (current == NULL) {
current = gtk_separator_new (GTK_ORIENTATION_HORIZONTAL);
gtk_widget_show (current);
gtk_list_box_row_set_header (row, current);
static void
cc_language_chooser_private_free (gpointer data)
......@@ -431,7 +414,7 @@ cc_language_chooser_new (GtkWidget *parent)
gtk_list_box_set_selection_mode (GTK_LIST_BOX (priv->language_list),
gtk_list_box_set_header_func (GTK_LIST_BOX (priv->language_list),
update_header_func, NULL, NULL);
cc_list_box_update_header_func, NULL, NULL);
add_all_languages (GTK_DIALOG (chooser));
g_signal_connect_swapped (priv->filter_entry, "search-changed",
Markdown is supported
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