coding style

This commit is contained in:
Markus Koch 2017-02-02 20:04:35 +01:00
parent ac6cec66e9
commit c469d585e2

View File

@ -99,9 +99,9 @@ static void mainWindow_configure_treeView(struct mainWindow *mainWindow)
GtkCellRenderer *renderer; GtkCellRenderer *renderer;
GtkTreeSortable *sortable; GtkTreeSortable *sortable;
GtkTreeViewColumn *col; GtkTreeViewColumn *col;
GtkTreeModel *model;
GtkTreeModelFilter *filtered; GtkTreeModelFilter *filtered;
GtkTreeModelSort *sorted; GtkTreeModelSort *sorted;
GtkTreeModel *model;
mainWindow->entryListStore = gtk_list_store_new(COL_COUNT, mainWindow->entryListStore = gtk_list_store_new(COL_COUNT,
G_TYPE_STRING, G_TYPE_STRING,
@ -260,10 +260,9 @@ void mainWindow_entrySelected(GtkWidget *widget, gpointer user_data)
gchar *temp; gchar *temp;
selection = gtk_tree_view_get_selection(mainWindow->entryListView); selection = gtk_tree_view_get_selection(mainWindow->entryListView);
if (gtk_tree_selection_get_selected(selection, &model, &iter)) if (gtk_tree_selection_get_selected(selection, &model, &iter)) {
{ gtk_tree_model_get(model, &iter, COL_TITLE, &temp, -1);
gtk_tree_model_get (model, &iter, COL_TITLE, &temp, -1); printf("Selected entry: %s\n", temp);
printf ("Selected entry: %s\n", temp);
fflush(stdout); fflush(stdout);
g_free(temp); g_free(temp);
} }