diff options
author | John Sullivan <sullivan@src.gnome.org> | 2000-03-28 06:05:26 +0000 |
---|---|---|
committer | John Sullivan <sullivan@src.gnome.org> | 2000-03-28 06:05:26 +0000 |
commit | a2d26f63d6db296a0a71e1ad35c268bfab7150da (patch) | |
tree | 171ec349059d6b323874863c2e22ce9cb68df3f5 /src/ntl-index-panel.c | |
parent | 6179a7643867a820d9d0c4b3b8f4d4fa0ca13f66 (diff) | |
download | nautilus-a2d26f63d6db296a0a71e1ad35c268bfab7150da.tar.gz |
Gave content views the ability to specify the user-displayed title for a
location; this is used initially (and most importantly) by web pages so that
bookmarks, the window title, and the index panel will display the html page title
rather than the url.
Diffstat (limited to 'src/ntl-index-panel.c')
-rw-r--r-- | src/ntl-index-panel.c | 20 |
1 files changed, 15 insertions, 5 deletions
diff --git a/src/ntl-index-panel.c b/src/ntl-index-panel.c index a39e0245c..91d4ced5e 100644 --- a/src/ntl-index-panel.c +++ b/src/ntl-index-panel.c @@ -72,7 +72,7 @@ static void nautilus_index_panel_drag_data_received (GtkWidget *widget, GdkDragC GtkSelectionData *selection_data, guint info, guint time); -static void nautilus_index_panel_set_up_info (NautilusIndexPanel *index_panel, const char* new_uri); +static void nautilus_index_panel_set_up_info (NautilusIndexPanel *index_panel, const char* new_uri, const char *initial_title); static void nautilus_index_panel_set_up_buttons (NautilusIndexPanel *index_panel, const char* new_uri); static void add_command_buttons(NautilusIndexPanel *index_panel, GList *command_list); @@ -560,7 +560,9 @@ nautilus_index_panel_set_up_buttons (NautilusIndexPanel *index_panel, const char /* this routine populates the index panel with the per-uri information */ void -nautilus_index_panel_set_up_info (NautilusIndexPanel *index_panel, const char* new_uri) +nautilus_index_panel_set_up_info (NautilusIndexPanel *index_panel, + const char* new_uri, + const char* initial_title) { NautilusDirectory *directory; NautilusBackground *background; @@ -588,7 +590,7 @@ nautilus_index_panel_set_up_info (NautilusIndexPanel *index_panel, const char* n g_free (background_color); /* tell the title widget about it */ - nautilus_index_title_set_uri(NAUTILUS_INDEX_TITLE(index_panel->details->index_title), new_uri); + nautilus_index_title_set_uri(NAUTILUS_INDEX_TITLE(index_panel->details->index_title), new_uri, initial_title); /* add keywords if we got any */ @@ -599,7 +601,9 @@ nautilus_index_panel_set_up_info (NautilusIndexPanel *index_panel, const char* n /* here is the key routine that populates the index panel with the appropriate information when the uri changes */ void -nautilus_index_panel_set_uri (NautilusIndexPanel *index_panel, const char* new_uri) +nautilus_index_panel_set_uri (NautilusIndexPanel *index_panel, + const char* new_uri, + const char* initial_title) { /* there's nothing to do if the uri is the same as the current one */ @@ -610,5 +614,11 @@ nautilus_index_panel_set_uri (NautilusIndexPanel *index_panel, const char* new_u index_panel->details->uri = g_strdup (new_uri); /* populate the per-uri box with the info */ - nautilus_index_panel_set_up_info (index_panel, new_uri); + nautilus_index_panel_set_up_info (index_panel, new_uri, initial_title); +} + +void +nautilus_index_panel_set_title (NautilusIndexPanel *index_panel, const char* new_title) +{ + nautilus_index_title_set_text (NAUTILUS_INDEX_TITLE(index_panel->details->index_title), new_title); } |