mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-12-27 06:00:22 +00:00
change return value and local variable to const gchar* to fix warning
2008-04-18 Michael Natterer <mitch@imendio.com> * modules/printbackends/cups/gtkprintercups.[ch] (gtk_printer_cups_get_ppd_name): change return value and local variable to const gchar* to fix warning about discarding const qualifier. svn path=/trunk/; revision=20021
This commit is contained in:
parent
6d683653db
commit
870bac8fd0
@ -1,3 +1,10 @@
|
||||
2008-04-18 Michael Natterer <mitch@imendio.com>
|
||||
|
||||
* modules/printbackends/cups/gtkprintercups.[ch]
|
||||
(gtk_printer_cups_get_ppd_name): change return value and local
|
||||
variable to const gchar* to fix warning about discarding const
|
||||
qualifier.
|
||||
|
||||
2008-04-18 Emmanuele Bassi <ebassi@gnome.org>
|
||||
|
||||
* gtk/gtkrecentmanager.c:
|
||||
|
@ -127,10 +127,10 @@ gtk_printer_cups_get_ppd (GtkPrinterCups *printer)
|
||||
return printer->ppd_file;
|
||||
}
|
||||
|
||||
char *
|
||||
const gchar *
|
||||
gtk_printer_cups_get_ppd_name (GtkPrinterCups *printer)
|
||||
{
|
||||
gchar *result;
|
||||
const gchar *result;
|
||||
|
||||
result = printer->ppd_name;
|
||||
|
||||
@ -139,4 +139,3 @@ gtk_printer_cups_get_ppd_name (GtkPrinterCups *printer)
|
||||
|
||||
return result;
|
||||
}
|
||||
|
||||
|
@ -16,10 +16,10 @@
|
||||
* Free Software Foundation, Inc., 59 Temple Place - Suite 330,
|
||||
* Boston, MA 02111-1307, USA.
|
||||
*/
|
||||
|
||||
#ifndef __GTK_PRINTER_CUPS_H__
|
||||
#define __GTK_PRINTER_CUPS_H__
|
||||
|
||||
#include <glib.h>
|
||||
#include <glib-object.h>
|
||||
#include <cups/cups.h>
|
||||
#include <cups/ppd.h>
|
||||
@ -65,7 +65,7 @@ void gtk_printer_cups_register_type (GTypeModule *module
|
||||
GtkPrinterCups *gtk_printer_cups_new (const char *name,
|
||||
GtkPrintBackend *backend);
|
||||
ppd_file_t *gtk_printer_cups_get_ppd (GtkPrinterCups *printer);
|
||||
char *gtk_printer_cups_get_ppd_name (GtkPrinterCups *printer);
|
||||
const gchar *gtk_printer_cups_get_ppd_name (GtkPrinterCups *printer);
|
||||
|
||||
G_END_DECLS
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user