diff options
author | Carlos Soriano <csoriano@gnome.org> | 2016-03-09 17:48:24 +0100 |
---|---|---|
committer | Carlos Soriano <csoriano@gnome.org> | 2016-03-10 18:15:38 +0100 |
commit | d41f6bbba4c6affa2bae05ae424ea2c77f9278a0 (patch) | |
tree | 2fc49c704a268f35372984d6a38b84d1f1d7b093 /src/nautilus-x-content-bar.c | |
parent | e1b7496218e1847d637ec385d2c6d973109ccbbe (diff) | |
download | nautilus-d41f6bbba4c6affa2bae05ae424ea2c77f9278a0.tar.gz |
content-bar: use const type for content types
This fixes warnings.
Diffstat (limited to 'src/nautilus-x-content-bar.c')
-rw-r--r-- | src/nautilus-x-content-bar.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/nautilus-x-content-bar.c b/src/nautilus-x-content-bar.c index 5f9ef40ff..71723fe96 100644 --- a/src/nautilus-x-content-bar.c +++ b/src/nautilus-x-content-bar.c @@ -80,7 +80,7 @@ content_bar_response_cb (GtkInfoBar *infobar, } static void -nautilus_x_content_bar_set_x_content_types (NautilusXContentBar *bar, const char **x_content_types) +nautilus_x_content_bar_set_x_content_types (NautilusXContentBar *bar, const char * const *x_content_types) { char *message = NULL; guint num_types; @@ -118,7 +118,7 @@ nautilus_x_content_bar_set_x_content_types (NautilusXContentBar *bar, const char message = get_message_for_content_type (bar->priv->x_content_types[0]); break; case 2: - message = get_message_for_two_content_types (bar->priv->x_content_types); + message = get_message_for_two_content_types ((const char* const *) bar->priv->x_content_types); break; default: message = g_strdup (_("Open with:")); @@ -302,7 +302,7 @@ nautilus_x_content_bar_init (NautilusXContentBar *bar) GtkWidget * nautilus_x_content_bar_new (GMount *mount, - const char **x_content_types) + const char * const *x_content_types) { return g_object_new (NAUTILUS_TYPE_X_CONTENT_BAR, "message-type", GTK_MESSAGE_QUESTION, |