[gtk/mcatanzaro/#1492: 199/200] filechoosernativeportal: remove redundant casts
- From: Michael Catanzaro <mcatanzaro src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk/mcatanzaro/#1492: 199/200] filechoosernativeportal: remove redundant casts
- Date: Wed, 16 Jan 2019 22:09:43 +0000 (UTC)
commit 330794474636eef4cc0b990452c4f4e62a918050
Author: Michael Catanzaro <mcatanzaro igalia com>
Date: Mon Jan 14 20:53:19 2019 -0600
filechoosernativeportal: remove redundant casts
We are casting from GtkFileChooserNative to... GtkFileChooserNative.
Boo.
gtk/gtkfilechoosernativeportal.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
---
diff --git a/gtk/gtkfilechoosernativeportal.c b/gtk/gtkfilechoosernativeportal.c
index f22d734f5a..3a372e7058 100644
--- a/gtk/gtkfilechoosernativeportal.c
+++ b/gtk/gtkfilechoosernativeportal.c
@@ -332,10 +332,10 @@ show_portal_file_chooser (GtkFileChooserNative *self,
g_variant_builder_add (&opt_builder, "{sv}", "modal",
g_variant_new_boolean (data->modal));
g_variant_builder_add (&opt_builder, "{sv}", "filters", get_filters (GTK_FILE_CHOOSER (self)));
- if (GTK_FILE_CHOOSER_NATIVE (self)->current_name)
+ if (self->current_name)
g_variant_builder_add (&opt_builder, "{sv}", "current_name",
g_variant_new_string (GTK_FILE_CHOOSER_NATIVE (self)->current_name));
- if (GTK_FILE_CHOOSER_NATIVE (self)->current_folder)
+ if (self->current_folder)
{
gchar *path;
@@ -344,7 +344,7 @@ show_portal_file_chooser (GtkFileChooserNative *self,
g_variant_new_bytestring (path));
g_free (path);
}
- if (GTK_FILE_CHOOSER_NATIVE (self)->current_file)
+ if (self->current_file)
{
gchar *path;
@@ -354,7 +354,7 @@ show_portal_file_chooser (GtkFileChooserNative *self,
g_free (path);
}
- if (GTK_FILE_CHOOSER_NATIVE (self)->choices)
+ if (self->choices)
g_variant_builder_add (&opt_builder, "{sv}", "choices",
serialize_choices (GTK_FILE_CHOOSER_NATIVE (self)));
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]