summaryrefslogtreecommitdiff
path: root/components/help/converters/gnome-db2html2/sect-elements.c
diff options
context:
space:
mode:
authorDarin Adler <darin@src.gnome.org>2000-05-04 15:46:22 +0000
committerDarin Adler <darin@src.gnome.org>2000-05-04 15:46:22 +0000
commite0e2e07eabc3000686e276e17bed6200b5eb55bf (patch)
tree7072f1c6f31f540effc715199e9c9ff54e0686b4 /components/help/converters/gnome-db2html2/sect-elements.c
parent9c14235dcd8ee598563d4a72c61d0570ccbb5623 (diff)
downloadnautilus-e0e2e07eabc3000686e276e17bed6200b5eb55bf.tar.gz
Some more instructions and cleanup. Removed one gratuitous renaming we
* HACKING: Some more instructions and cleanup. * RENAMING: Removed one gratuitous renaming we won't do. * components/html/ntl-web-browser.c: Removed stray "#include <config.h>" that I added by accident. * components/hardware/main.c: (main): * components/help/hyperbola-main.c: (main): * components/html/ntl-web-browser.c: (main): * components/music/main.c: (main): * components/notes/ntl-notes.c: (main): * components/rpmview/main.c: (main): * components/websearch/ntl-web-search.c: (main): * src/file-manager/gnome-desktop.c (main): * src/ntl-main.c (main): Added ifdefs so you don't get warnings when building with localization turned off. Ugly, but needed I think. * components/help/converters/gnome-db2html2/gdb3html.c: (ulink_start_element), (start_element): * components/help/converters/gnome-db2html2/sect-elements.c: (sect_sect_start_element), (sect_sect_end_element), (sect_title_start_element), (sect_xref_start_element), (sect_graphic_start_element), (sect_get_infobox_logo): * components/help/converters/gnome-db2html2/sect-preparse.c: (sect_preparse_sect_start_element), (sect_preparse_title_characters): * components/help/converters/gnome-db2html2/toc-elements.c: (toc_sect_start_element), (toc_title_start_element): * components/help/converters/gnome-info2html2/html.c: (write_node_link_html): * components/help/hyperbola-filefmt.c: (tree_key_compare): * components/help/hyperbola-nav-index.c: (start_element), (end_element), (hyperbola_navigation_index_new): * components/html/ntl-web-browser.c: (browser_submit): Replaced all uses of strcasecmp with g_strcasecmp. Why? Because Michael Meeks said so and that's good enough for me (in this case :-). * components/music/nautilus-music-view.c: (nautilus_music_view_update_from_uri): * libnautilus-extensions/nautilus-file.c: (nautilus_file_get_mime_type_as_string_attribute), (nautilus_file_get_mime_type): * libnautilus-extensions/nautilus-icon-factory.c: (nautilus_icon_factory_get_icon_name_for_regular_file): * src/file-manager/fm-icon-view.c (get_icon_property_callback): * src/ntl-index-panel.c (nautilus_index_panel_update_buttons): * src/ntl-uri-map.c (file_list_to_mime_type_hash_table): Changed get_mime_type to be like all other text functions and return a strdup'd string. John said it was a good idea. * libnautilus-extensions/nautilus-file-private.h: * libnautilus-extensions/nautilus-directory-async.c: (metafile_read_callback), (metafile_read_some), (set_up_request_by_file_attributes), (nautilus_directory_monitor_add_internal), (directory_list_get_next_position), (directory_load_callback), (ready_callback_call), (nautilus_directory_call_when_ready_internal), (wants_directory_count), (has_problem), (ready_callback_is_satisfied), (is_anyone_monitoring_file_list), (is_anyone_waiting_for_metafile), (is_wanted), (select_needy_file), (start_getting_directory_counts): Reorganize to get ready for adding code to read the top left text. * libnautilus-extensions/nautilus-file-attributes.h: Added name for the "top left text" attribute. * libnautilus-extensions/nautilus-file.h: * libnautilus-extensions/nautilus-file.c: (nautilus_file_get_top_left_text): Added call to get the top left text. * libnautilus-extensions/nautilus-icon-canvas-item.c: (draw_embedded_text): Tiny format tweak. * libnautilus-extensions/nautilus-icon-container.c: (nautilus_icon_container_update_icon): Tiny format tweak. * libnautilus-extensions/nautilus-icon-factory.h: * libnautilus-extensions/nautilus-icon-factory.c: (nautilus_icon_factory_get_pixbuf_for_file), (nautilus_icon_factory_get_pixmap_and_mask_for_file), (nautilus_icon_factory_embed_text), (nautilus_icon_factory_embed_file_text): Added support for embedded text. Not completely deployed yet.
Diffstat (limited to 'components/help/converters/gnome-db2html2/sect-elements.c')
-rw-r--r--components/help/converters/gnome-db2html2/sect-elements.c24
1 files changed, 12 insertions, 12 deletions
diff --git a/components/help/converters/gnome-db2html2/sect-elements.c b/components/help/converters/gnome-db2html2/sect-elements.c
index 9a14c4a69..fd6e75308 100644
--- a/components/help/converters/gnome-db2html2/sect-elements.c
+++ b/components/help/converters/gnome-db2html2/sect-elements.c
@@ -327,7 +327,7 @@ sect_sect_start_element (Context *context,
g_return_if_fail (strlen (name) >= 5);
atrs_ptr = (gchar **) atrs;
while (atrs_ptr && *atrs_ptr) {
- if (!strcasecmp (*atrs_ptr, "id")) {
+ if (!g_strcasecmp (*atrs_ptr, "id")) {
atrs_ptr++;
((StackElement *)context->stack->data)->atrs = g_new0 (gchar *, 3);
((StackElement *)context->stack->data)->atrs[0] = g_strdup ("id");
@@ -397,7 +397,7 @@ sect_sect_end_element (Context *context,
atrs_ptr = ((StackElement *) context->stack->data)->atrs;
while (atrs_ptr && *atrs_ptr) {
- if (!strcasecmp (*atrs_ptr, "id")) {
+ if (!g_strcasecmp (*atrs_ptr, "id")) {
atrs_ptr++;
if (!strcmp (*atrs_ptr, context->target_section)) {
((SectContext *)context->data)->state = LOOKING_FOR_POST_SECT;
@@ -565,7 +565,7 @@ sect_title_start_element (Context *context,
atrs_ptr = (stack_el->atrs);
while (atrs_ptr && *atrs_ptr) {
- if (!strcasecmp (*atrs_ptr, "id")) {
+ if (!g_strcasecmp (*atrs_ptr, "id")) {
atrs_ptr++;
sect_print (context, "%s", *atrs_ptr);
break;
@@ -747,7 +747,7 @@ sect_xref_start_element (Context *context,
sect_print (context, "<A HREF=\"ghelp:%s", context->base_file);
atrs_ptr = (gchar **) atrs;
while (atrs_ptr && *atrs_ptr) {
- if (!strcasecmp (*atrs_ptr, "linkend")) {
+ if (!g_strcasecmp (*atrs_ptr, "linkend")) {
atrs_ptr++;
sect_print (context, "?%s", *atrs_ptr);
break;
@@ -847,17 +847,17 @@ sect_graphic_start_element (Context *context,
atrs_ptr = (gchar **) atrs;
while (atrs_ptr && *atrs_ptr) {
- if (!strcasecmp (*atrs_ptr, "format")) {
+ if (!g_strcasecmp (*atrs_ptr, "format")) {
atrs_ptr++;
format = *atrs_ptr;
atrs_ptr++;
continue;
- } else if (!strcasecmp (*atrs_ptr, "fileref")) {
+ } else if (!g_strcasecmp (*atrs_ptr, "fileref")) {
atrs_ptr++;
fileref = *atrs_ptr;
atrs_ptr++;
continue;
- } else if (!strcasecmp (*atrs_ptr, "id")) {
+ } else if (!g_strcasecmp (*atrs_ptr, "id")) {
atrs_ptr++;
sect_context->figure->id = g_strdup (*atrs_ptr);
atrs_ptr++;
@@ -869,7 +869,7 @@ sect_graphic_start_element (Context *context,
if (fileref == NULL)
return;
- if (format == NULL || (!strcasecmp (format, "gif")))
+ if (format == NULL || (!g_strcasecmp (format, "gif")))
sect_context->figure->img = g_strdup_printf ("%s.gif", fileref);
else
sect_context->figure->img = g_strdup_printf ("%s.png", fileref);
@@ -1109,13 +1109,13 @@ sect_programlisting_end_element (Context *context,
static gchar *
sect_get_infobox_logo (const gchar *name)
{
- if (!strcasecmp (name, "tip"))
+ if (!g_strcasecmp (name, "tip"))
return gnome_pixmap_file ("gnome-info.png");
- else if (!strcasecmp (name, "warning"))
+ else if (!g_strcasecmp (name, "warning"))
return gnome_pixmap_file ("gnome-warning.png");
- else if (!strcasecmp (name, "important"))
+ else if (!g_strcasecmp (name, "important"))
return gnome_pixmap_file ("gnome-info.png");
- else if (!strcasecmp (name, "note"))
+ else if (!g_strcasecmp (name, "note"))
return gnome_pixmap_file ("gnome-info.png");
return gnome_pixmap_file ("gnome-info.png");
}