Correct indentations
This commit is contained in:
parent
aa4d74f603
commit
27ad3385b7
@ -8,7 +8,7 @@ const gchar *default_template[] = {"# Title\n"
|
|||||||
"Tags: \n"
|
"Tags: \n"
|
||||||
"\n"
|
"\n"
|
||||||
"Text",
|
"Text",
|
||||||
NULL};
|
NULL};
|
||||||
|
|
||||||
static gboolean mainWindow_workspace_entry_visible(GtkTreeModel *model,
|
static gboolean mainWindow_workspace_entry_visible(GtkTreeModel *model,
|
||||||
GtkTreeIter *iter,
|
GtkTreeIter *iter,
|
||||||
@ -215,9 +215,9 @@ static void mainWindow_configure_workspaceTreeView(struct mainWindow *mainWindow
|
|||||||
G_TYPE_STRING);
|
G_TYPE_STRING);
|
||||||
|
|
||||||
mainWindow->workspaceListFiltered = GTK_TREE_MODEL_FILTER(
|
mainWindow->workspaceListFiltered = GTK_TREE_MODEL_FILTER(
|
||||||
gtk_tree_model_filter_new(
|
gtk_tree_model_filter_new(
|
||||||
GTK_TREE_MODEL(mainWindow->workspaceListStore),
|
GTK_TREE_MODEL(mainWindow->workspaceListStore),
|
||||||
NULL));
|
NULL));
|
||||||
|
|
||||||
gtk_tree_model_filter_set_visible_func(mainWindow->workspaceListFiltered,
|
gtk_tree_model_filter_set_visible_func(mainWindow->workspaceListFiltered,
|
||||||
(GtkTreeModelFilterVisibleFunc) mainWindow_workspace_entry_visible,
|
(GtkTreeModelFilterVisibleFunc) mainWindow_workspace_entry_visible,
|
||||||
@ -798,9 +798,9 @@ static void mainWindow_set_text(struct mainWindow *mainWindow, gchar *text, gcha
|
|||||||
base_url = g_strdup_printf("file://%s", file_url);
|
base_url = g_strdup_printf("file://%s", file_url);
|
||||||
file = g_file_new_for_path(tempfile_path);
|
file = g_file_new_for_path(tempfile_path);
|
||||||
stream = g_file_replace(
|
stream = g_file_replace(
|
||||||
file, NULL, FALSE,
|
file, NULL, FALSE,
|
||||||
G_FILE_CREATE_NONE,
|
G_FILE_CREATE_NONE,
|
||||||
NULL, NULL);
|
NULL, NULL);
|
||||||
g_output_stream_write(G_OUTPUT_STREAM(stream), text, strlen(text), NULL, NULL);
|
g_output_stream_write(G_OUTPUT_STREAM(stream), text, strlen(text), NULL, NULL);
|
||||||
g_output_stream_flush(G_OUTPUT_STREAM(stream), NULL, NULL);
|
g_output_stream_flush(G_OUTPUT_STREAM(stream), NULL, NULL);
|
||||||
|
|
||||||
@ -950,13 +950,13 @@ void mainWindow_filterChanged(GtkWidget *widget, gpointer user_data)
|
|||||||
}
|
}
|
||||||
|
|
||||||
mainWindow->filterSettings.search_title = gtk_toggle_button_get_active(
|
mainWindow->filterSettings.search_title = gtk_toggle_button_get_active(
|
||||||
GTK_TOGGLE_BUTTON(mainWindow->checkSearchTitle));
|
GTK_TOGGLE_BUTTON(mainWindow->checkSearchTitle));
|
||||||
mainWindow->filterSettings.search_tags = gtk_toggle_button_get_active(
|
mainWindow->filterSettings.search_tags = gtk_toggle_button_get_active(
|
||||||
GTK_TOGGLE_BUTTON(mainWindow->checkSearchTags));
|
GTK_TOGGLE_BUTTON(mainWindow->checkSearchTags));
|
||||||
mainWindow->filterSettings.search_text = gtk_toggle_button_get_active(
|
mainWindow->filterSettings.search_text = gtk_toggle_button_get_active(
|
||||||
GTK_TOGGLE_BUTTON(mainWindow->checkSearchText));
|
GTK_TOGGLE_BUTTON(mainWindow->checkSearchText));
|
||||||
mainWindow->filterSettings.search_summary = gtk_toggle_button_get_active(
|
mainWindow->filterSettings.search_summary = gtk_toggle_button_get_active(
|
||||||
GTK_TOGGLE_BUTTON(mainWindow->checkSearchSummary));
|
GTK_TOGGLE_BUTTON(mainWindow->checkSearchSummary));
|
||||||
|
|
||||||
gtk_tree_model_filter_refilter(mainWindow->entryListFiltered);
|
gtk_tree_model_filter_refilter(mainWindow->entryListFiltered);
|
||||||
}
|
}
|
||||||
|
@ -78,9 +78,9 @@ gboolean mdiary_save_settings(gchar *filename, struct mdiary_settings *settings)
|
|||||||
|
|
||||||
file = g_file_new_for_path(filename);
|
file = g_file_new_for_path(filename);
|
||||||
stream = g_file_replace(
|
stream = g_file_replace(
|
||||||
file, NULL, FALSE,
|
file, NULL, FALSE,
|
||||||
G_FILE_CREATE_NONE,
|
G_FILE_CREATE_NONE,
|
||||||
NULL, NULL);
|
NULL, NULL);
|
||||||
|
|
||||||
|
|
||||||
output_buffer = g_strdup_printf("renderer = %d\n", settings->mainWindow->renderer);
|
output_buffer = g_strdup_printf("renderer = %d\n", settings->mainWindow->renderer);
|
||||||
|
Loading…
Reference in New Issue
Block a user