Git-Url:
http://git.frugalware.org/gitweb/gitweb.cgi?p=fun.git;a=commitdiff;h=c66620bf757d773b6d90fb96517033a8e48f44ab
commit c66620bf757d773b6d90fb96517033a8e48f44ab
Author: Priyank <[EMAIL PROTECTED]>
Date: Thu Dec 20 01:27:40 2007 +0530
removed some stale code
* fun-ui: use fun_tooltip_set_notification_timeout() to update timeout value
diff --git a/src/fun-tooltip.h b/src/fun-tooltip.h
index 7c395e1..742201a 100644
--- a/src/fun-tooltip.h
+++ b/src/fun-tooltip.h
@@ -12,7 +12,7 @@ void fun_tooltip_new (GtkStatusIcon *icon);
void fun_tooltip_set_text (const gchar *summary, const gchar *body);
/* Sets the tooltip timeout (seconds) */
-void fun_tooltip_set_timeout (guint timeout);
+void fun_tooltip_set_notification_timeout (guint timeout);
/* Show the tooltip */
void fun_tooltip_show (GtkStatusIcon *icon);
diff --git a/src/fun-ui.c b/src/fun-ui.c
index 6f5096d..8737078 100644
--- a/src/fun-ui.c
+++ b/src/fun-ui.c
@@ -87,7 +87,6 @@ static gchar *license =
static gboolean fun_timeout_func (void);
static gboolean fun_timeout_conn (void);
-static gboolean fun_timeout_notification (void);
static void fun_config_dialog_show (void);
static void fun_restart (void);
@@ -189,6 +188,7 @@ cb_fun_config_dlg_close_clicked (GtkWidget *button,
gpointer data)
/* notification_timeout setting */
sel = gtk_adjustment_get_value (fun_config_not_tim_adj);
+ fun_tooltip_set_notification_timeout (sel);
fun_config_set_value_int ("notification_timeout", sel);
fun_config_save ();
@@ -461,13 +461,8 @@ fun_timeout_func (void)
if (fun_dbus_perform_service (PERFORM_UPDATE, NULL, &plist, NULL)==TRUE)
{
//g_print ("\nlist is\n %s", plist);
- fun_tooltip_set_text (_("Updates are available"), _("Yeah
updates are available"));
- //fun_tooltip_set_text2 (tooltip, _("Click here to know
more.."), TRUE);
+ fun_tooltip_set_text (_("Updates are available"), _("Click the
tray icon for details"));
fun_tooltip_show (icon);
- /* display the notification popup for notification_timeout
seconds */
- /* we do this by registering a timeout for x seconds which will
simply hide the
- * tooltip when fired and destroy itself */
- g_timeout_add_seconds
(fun_config_get_value_int("notification_timeout"),
(GSourceFunc)fun_timeout_notification, NULL);
/* populate the update list */
fun_populate_updates_tvw (plist);
}
@@ -480,14 +475,6 @@ fun_timeout_func (void)
return TRUE;
}
-static gboolean
-fun_timeout_notification (void)
-{
- //cb_fun_systray_leave_notify (NULL, NULL, NULL);
-
- return FALSE;
-}
-
static void
fun_about_show (void)
{
_______________________________________________
Frugalware-git mailing list
[email protected]
http://frugalware.org/mailman/listinfo/frugalware-git