Some typos

Signed-off-by: Sebastian Ramacher <sebastian+dev@ramacher.at>
This commit is contained in:
Sebastian Ramacher 2014-01-07 03:43:38 +01:00
parent 68b665a49d
commit 40fe7cdd9e
4 changed files with 5 additions and 5 deletions

View file

@ -35,7 +35,7 @@
/** Read a most GT_MAX_READ bytes before falling back to file. */ /** Read a most GT_MAX_READ bytes before falling back to file. */
static const size_t GT_MAX_READ = 1 << 16; static const size_t GT_MAX_READ = 1 << 16;
static const gchar* guess_type(const char* path); static const char* guess_type(const char* path);
/** /**
* Document * Document
@ -86,7 +86,7 @@ zathura_document_open(zathura_plugin_manager_t* plugin_manager, const char*
return NULL; return NULL;
} }
const gchar* content_type = guess_type(path); const char* content_type = guess_type(path);
if (content_type == NULL) { if (content_type == NULL) {
girara_error("Could not determine file type."); girara_error("Could not determine file type.");
return NULL; return NULL;

View file

@ -60,7 +60,7 @@ print(zathura_t* zathura)
zathura->print.settings = g_object_ref(gtk_print_operation_get_print_settings(print_operation)); zathura->print.settings = g_object_ref(gtk_print_operation_get_print_settings(print_operation));
zathura->print.page_setup = g_object_ref(gtk_print_operation_get_default_page_setup(print_operation)); zathura->print.page_setup = g_object_ref(gtk_print_operation_get_default_page_setup(print_operation));
} else if (result == GTK_PRINT_OPERATION_RESULT_ERROR) { } else if (result == GTK_PRINT_OPERATION_RESULT_ERROR) {
girara_error("Error occured while printing progress"); girara_error("Error pccurred while printing progress");
} }
g_object_unref(print_operation); g_object_unref(print_operation);

View file

@ -1287,7 +1287,7 @@ sc_zoom(girara_session_t* session, girara_argument_t* argument, girara_event_t*
zathura_document_set_adjust_mode(zathura->document, ZATHURA_ADJUST_NONE); zathura_document_set_adjust_mode(zathura->document, ZATHURA_ADJUST_NONE);
/* retreive zoom step value */ /* retrieve zoom step value */
int value = 1; int value = 1;
girara_setting_get(zathura->ui.session, "zoom-step", &value); girara_setting_get(zathura->ui.session, "zoom-step", &value);

View file

@ -210,7 +210,7 @@ replace_substring(const char* string, const char* old, const char* new)
size_t old_len = strlen(old); size_t old_len = strlen(old);
size_t new_len = strlen(new); size_t new_len = strlen(new);
/* count occurences */ /* count occurrences */
unsigned int count = 0; unsigned int count = 0;
unsigned int i = 0; unsigned int i = 0;