coding style
This commit is contained in:
parent
ac6cec66e9
commit
c469d585e2
@ -99,9 +99,9 @@ static void mainWindow_configure_treeView(struct mainWindow *mainWindow)
|
||||
GtkCellRenderer *renderer;
|
||||
GtkTreeSortable *sortable;
|
||||
GtkTreeViewColumn *col;
|
||||
GtkTreeModel *model;
|
||||
GtkTreeModelFilter *filtered;
|
||||
GtkTreeModelSort *sorted;
|
||||
GtkTreeModel *model;
|
||||
|
||||
mainWindow->entryListStore = gtk_list_store_new(COL_COUNT,
|
||||
G_TYPE_STRING,
|
||||
@ -260,10 +260,9 @@ void mainWindow_entrySelected(GtkWidget *widget, gpointer user_data)
|
||||
gchar *temp;
|
||||
|
||||
selection = gtk_tree_view_get_selection(mainWindow->entryListView);
|
||||
if (gtk_tree_selection_get_selected(selection, &model, &iter))
|
||||
{
|
||||
gtk_tree_model_get (model, &iter, COL_TITLE, &temp, -1);
|
||||
printf ("Selected entry: %s\n", temp);
|
||||
if (gtk_tree_selection_get_selected(selection, &model, &iter)) {
|
||||
gtk_tree_model_get(model, &iter, COL_TITLE, &temp, -1);
|
||||
printf("Selected entry: %s\n", temp);
|
||||
fflush(stdout);
|
||||
g_free(temp);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user