X-Git-Url: http://git.meshlink.io/?a=blobdiff_plain;f=avahi-ui%2Favahi-ui.h;h=aae61dcdab1850b5a245a08b5c8da68d69712697;hb=72f1f558f1e4261e4a10b5cefc77c9ac76f9bbff;hp=b3149576413bba7e4010c2f1b4060e81d9ff16a9;hpb=8c4483baa593205c3eaecebe0738d1455025777c;p=catta diff --git a/avahi-ui/avahi-ui.h b/avahi-ui/avahi-ui.h index b314957..aae61dc 100644 --- a/avahi-ui/avahi-ui.h +++ b/avahi-ui/avahi-ui.h @@ -1,29 +1,26 @@ #ifndef fooavahiuihfoo #define fooavahiuihfoo -/* $Id$ */ - /*** This file is part of avahi. - + avahi is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version. - + avahi is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. - + You should have received a copy of the GNU Lesser General Public License along with avahi; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. ***/ -#include -#include +#include #include @@ -45,7 +42,7 @@ typedef struct _AuiServiceDialogClass AuiServiceDialogClass; struct _AuiServiceDialogClass { GtkDialogClass parent_class; - + /* Padding for future expansion */ void (*_aui_reserved1)(void); void (*_aui_reserved2)(void); @@ -79,11 +76,11 @@ GtkWidget* aui_service_dialog_new( /** \cond fulldocs */ GtkWidget *aui_service_dialog_new_valist( - gchar *title, + const gchar *title, GtkWindow *parent, const gchar *first_button_text, va_list varargs); -/** \endcond } +/** \endcond */ /** @} */ @@ -95,6 +92,8 @@ void aui_service_dialog_set_browse_service_types(AuiServiceDialog *d, const gcha void aui_service_dialog_set_browse_service_typesv(AuiServiceDialog *d, const gchar *const*type); /** Return the service types currently browsed for. i.e. what was previously set with aui_service_dialog_set_browse_service_types() */ const gchar*const* aui_service_dialog_get_browse_service_types(AuiServiceDialog *d); +/** Overwrite the pretty name shown in the service type column. \since 0.6.22 */ +void aui_service_dialog_set_service_type_name(AuiServiceDialog *d, const gchar *type, const gchar *name); /** @} */ @@ -180,5 +179,3 @@ AvahiProtocol aui_service_dialog_get_address_family(AuiServiceDialog *d); G_END_DECLS #endif - -