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;
|
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,8 +260,7 @@ 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);
|
||||||
|
Loading…
Reference in New Issue
Block a user