[epiphany] downloader-view: use g_object_get not get_property



commit 4ac6ceaafd1bf2281e3b666e79e6646036277980
Author: Diego Escalante Urrelo <descalante igalia com>
Date:   Wed Mar 3 23:07:04 2010 -0500

    downloader-view: use g_object_get not get_property
    
    A minor simplification.
    
    Bug #611779

 embed/downloader-view.c |    9 +++------
 1 files changed, 3 insertions(+), 6 deletions(-)
---
diff --git a/embed/downloader-view.c b/embed/downloader-view.c
index 27f1c59..645f267 100644
--- a/embed/downloader-view.c
+++ b/embed/downloader-view.c
@@ -672,7 +672,7 @@ downloader_view_add_download (DownloaderView *dv,
 	char *mime, *icon_name;
 	int width = 16, height = 16;
 #endif
-	GValue visible = {0, };
+	gboolean visible = FALSE;
 
 #ifdef HAVE_LIBNOTIFY
 	char *downloading;
@@ -716,10 +716,9 @@ downloader_view_add_download (DownloaderView *dv,
 				 G_CALLBACK (download_error_cb), dv, 0);
 
 	/* Show it already */
-	g_value_init (&visible, G_TYPE_BOOLEAN);
-	g_object_get_property (G_OBJECT (dv->priv->window), "visible", &visible);
+	g_object_get (G_OBJECT (dv->priv->window), "visible", &visible, NULL);
 	
-	if (eel_gconf_get_boolean (CONF_DOWNLOADS_HIDDEN) && !g_value_get_boolean (&visible))
+	if (eel_gconf_get_boolean (CONF_DOWNLOADS_HIDDEN) && !visible)
 	{
 
 #ifdef HAVE_LIBNOTIFY
@@ -743,8 +742,6 @@ downloader_view_add_download (DownloaderView *dv,
 	{
 		ephy_dialog_show (EPHY_DIALOG (dv));
 	}
-	
-	g_value_unset (&visible);
 
 #if 0
         // FIXMEchpe port this to use GIcon when webkit gets download support



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]