mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2025-01-09 12:10:09 +00:00
Fix -Wincompatible-pointer-types warnings
This commit is contained in:
parent
a93daa0373
commit
882c81dab2
@ -451,7 +451,7 @@ plane_set_property (GObject *object,
|
|||||||
GParamSpec *pspec)
|
GParamSpec *pspec)
|
||||||
{
|
{
|
||||||
GtkColorPlane *plane = GTK_COLOR_PLANE (object);
|
GtkColorPlane *plane = GTK_COLOR_PLANE (object);
|
||||||
GObject *adjustment;
|
GtkAdjustment *adjustment;
|
||||||
|
|
||||||
/* Construct only properties can only be set once, these are created
|
/* Construct only properties can only be set once, these are created
|
||||||
* only in order to be properly buildable from gtkcoloreditor.ui
|
* only in order to be properly buildable from gtkcoloreditor.ui
|
||||||
|
@ -3966,7 +3966,7 @@ cups_request_ppd (GtkPrinter *printer)
|
|||||||
g_io_channel_set_encoding (data->ppd_io, NULL, NULL);
|
g_io_channel_set_encoding (data->ppd_io, NULL, NULL);
|
||||||
g_io_channel_set_close_on_unref (data->ppd_io, TRUE);
|
g_io_channel_set_close_on_unref (data->ppd_io, TRUE);
|
||||||
|
|
||||||
data->printer = g_object_ref (printer);
|
data->printer = (GtkPrinterCups *) g_object_ref (printer);
|
||||||
|
|
||||||
resource = g_strdup_printf ("/printers/%s.ppd",
|
resource = g_strdup_printf ("/printers/%s.ppd",
|
||||||
gtk_printer_cups_get_ppd_name (GTK_PRINTER_CUPS (printer)));
|
gtk_printer_cups_get_ppd_name (GTK_PRINTER_CUPS (printer)));
|
||||||
|
@ -233,7 +233,7 @@ animation_timer (GtkEntryCompletion *completion)
|
|||||||
{
|
{
|
||||||
g_print ("removing model!\n");
|
g_print ("removing model!\n");
|
||||||
|
|
||||||
old_store = g_object_ref (store);
|
old_store = GTK_LIST_STORE (g_object_ref (store));
|
||||||
gtk_entry_completion_set_model (completion, NULL);
|
gtk_entry_completion_set_model (completion, NULL);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
@ -103,9 +103,9 @@ get_model (void)
|
|||||||
gtk_builder_add_from_string (builder, menu_markup, -1, &error);
|
gtk_builder_add_from_string (builder, menu_markup, -1, &error);
|
||||||
g_assert_no_error (error);
|
g_assert_no_error (error);
|
||||||
|
|
||||||
menu = g_object_ref (gtk_builder_get_object (builder, "edit-menu"));
|
menu = G_MENU_MODEL (g_object_ref (gtk_builder_get_object (builder, "edit-menu")));
|
||||||
|
|
||||||
section = g_object_ref (gtk_builder_get_object (builder, "size-placeholder"));
|
section = G_MENU_MODEL (g_object_ref (gtk_builder_get_object (builder, "size-placeholder")));
|
||||||
g_object_unref (builder);
|
g_object_unref (builder);
|
||||||
|
|
||||||
for (i = 0.5; i <= 2.0; i += 0.5)
|
for (i = 0.5; i <= 2.0; i += 0.5)
|
||||||
|
Loading…
Reference in New Issue
Block a user