aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDiego Escalante Urrelo <descalante@igalia.com>2010-03-04 12:07:04 +0800
committerDiego Escalante Urrelo <descalante@igalia.com>2010-03-16 07:29:58 +0800
commit4ac6ceaafd1bf2281e3b666e79e6646036277980 (patch)
tree7e39ea6c4f85a3366ca64a2dcac0ec2eafaa9cc5
parent3d46002e19d94a38d53754d303a27bc8630e1a4e (diff)
downloadgsoc2013-epiphany-4ac6ceaafd1bf2281e3b666e79e6646036277980.tar
gsoc2013-epiphany-4ac6ceaafd1bf2281e3b666e79e6646036277980.tar.gz
gsoc2013-epiphany-4ac6ceaafd1bf2281e3b666e79e6646036277980.tar.bz2
gsoc2013-epiphany-4ac6ceaafd1bf2281e3b666e79e6646036277980.tar.lz
gsoc2013-epiphany-4ac6ceaafd1bf2281e3b666e79e6646036277980.tar.xz
gsoc2013-epiphany-4ac6ceaafd1bf2281e3b666e79e6646036277980.tar.zst
gsoc2013-epiphany-4ac6ceaafd1bf2281e3b666e79e6646036277980.zip
downloader-view: use g_object_get not get_property
A minor simplification. Bug #611779
-rw-r--r--embed/downloader-view.c9
1 files changed, 3 insertions, 6 deletions
diff --git a/embed/downloader-view.c b/embed/downloader-view.c
index 27f1c595e..645f267c8 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