[Xfce4-commits] [apps/mousepad] 02/03: Fix a couple of warnings

noreply at xfce.org noreply at xfce.org
Fri Jun 1 03:39:48 CEST 2018


This is an automated email from the git hooks/post-receive script.

a   n   d   r   e       p   u   s   h   e   d       a       c   o   m   m   i   t       t   o       b   r   a   n   c   h       m   a   s   t   e   r   
   in repository apps/mousepad.

commit f28b2d98c6f07cd6cc0c6841a016da35398a7ce9
Author: Andre Miranda <andreldm at xfce.org>
Date:   Thu May 31 22:27:37 2018 -0300

    Fix a couple of warnings
---
 mousepad/mousepad-file.c           | 2 +-
 mousepad/mousepad-settings-store.c | 4 ++--
 mousepad/mousepad-window.c         | 2 +-
 3 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/mousepad/mousepad-file.c b/mousepad/mousepad-file.c
index b44acec..3d12f1b 100644
--- a/mousepad/mousepad-file.c
+++ b/mousepad/mousepad-file.c
@@ -267,7 +267,7 @@ mousepad_file_new (GtkTextBuffer *buffer)
   file = g_object_new (MOUSEPAD_TYPE_FILE, NULL);
 
   /* set the buffer */
-  file->buffer = g_object_ref (G_OBJECT (buffer));
+  file->buffer = GTK_TEXT_BUFFER (g_object_ref (G_OBJECT (buffer)));
 
   return file;
 }
diff --git a/mousepad/mousepad-settings-store.c b/mousepad/mousepad-settings-store.c
index 8e7c3a4..6228e9b 100644
--- a/mousepad/mousepad-settings-store.c
+++ b/mousepad/mousepad-settings-store.c
@@ -275,8 +275,8 @@ mousepad_settings_store_lookup (MousepadSettingsStore *self,
 {
   MousepadSettingKey *key;
 
-  g_return_val_if_fail (MOUSEPAD_IS_SETTINGS_STORE (self), NULL);
-  g_return_val_if_fail (path != NULL, NULL);
+  g_return_val_if_fail (MOUSEPAD_IS_SETTINGS_STORE (self), FALSE);
+  g_return_val_if_fail (path != NULL, FALSE);
 
   if (key_name == NULL && settings == NULL)
     return g_hash_table_contains (self->keys, path);
diff --git a/mousepad/mousepad-window.c b/mousepad/mousepad-window.c
index 9e56749..3c5ef04 100644
--- a/mousepad/mousepad-window.c
+++ b/mousepad/mousepad-window.c
@@ -2090,7 +2090,7 @@ mousepad_window_notebook_create_window (GtkNotebook    *notebook,
 
       /* remove the document from the active window */
 #if GTK_CHECK_VERSION (3, 16, 0)
-      gtk_notebook_detach_tab (GTK_CONTAINER (window->notebook), page);
+      gtk_notebook_detach_tab (GTK_NOTEBOOK (window->notebook), page);
 #else
       /* crashes on GTK+ 3 somewhere between 3.10-3.16
        * Fixed above using new function added in 3.16

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.


More information about the Xfce4-commits mailing list