[Xfce4-commits] [panel-plugins/xfce4-whiskermenu-plugin] 421/473: Fixed crash when monitoring file.

noreply at xfce.org noreply at xfce.org
Mon Feb 16 23:59:51 CET 2015


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

gottcode pushed a commit to branch master
in repository panel-plugins/xfce4-whiskermenu-plugin.

commit 3283bd4ff1398945781b7145928ae83647ca9dae
Author: Graeme Gott <graeme at gottcode.org>
Date:   Mon Dec 8 05:55:33 2014 -0500

    Fixed crash when monitoring file.
---
 panel-plugin/profile-picture.cpp |    4 ++--
 panel-plugin/profile-picture.h   |    2 +-
 2 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/panel-plugin/profile-picture.cpp b/panel-plugin/profile-picture.cpp
index 08e2385..8ca088c 100644
--- a/panel-plugin/profile-picture.cpp
+++ b/panel-plugin/profile-picture.cpp
@@ -35,7 +35,7 @@ ProfilePicture::ProfilePicture()
 
 	m_file_monitor = g_file_monitor_file(file, G_FILE_MONITOR_NONE, NULL, NULL);
 	g_signal_connect_slot(m_file_monitor, "changed", &ProfilePicture::on_file_changed, this);
-	on_file_changed(m_file_monitor, file);
+	on_file_changed(m_file_monitor, file, NULL, G_FILE_MONITOR_EVENT_CHANGED);
 
 	g_object_unref(file);
 
@@ -54,7 +54,7 @@ ProfilePicture::~ProfilePicture()
 
 //-----------------------------------------------------------------------------
 
-void ProfilePicture::on_file_changed(GFileMonitor*, GFile* file)
+void ProfilePicture::on_file_changed(GFileMonitor*, GFile* file, GFile*, GFileMonitorEvent)
 {
 	gint width = 32, height = 32;
 	gtk_icon_size_lookup(GTK_ICON_SIZE_DND, &width, &height);
diff --git a/panel-plugin/profile-picture.h b/panel-plugin/profile-picture.h
index f1b5412..d96b8e7 100644
--- a/panel-plugin/profile-picture.h
+++ b/panel-plugin/profile-picture.h
@@ -35,7 +35,7 @@ public:
 	}
 
 private:
-	void on_file_changed(GFileMonitor* monitor, GFile* file);
+	void on_file_changed(GFileMonitor* monitor, GFile* file, GFile* other_file, GFileMonitorEvent event_type);
 
 private:
 	GtkWidget* m_alignment;

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


More information about the Xfce4-commits mailing list