~ubuntu-core-dev/update-notifier/ubuntu

« back to all changes in this revision

Viewing changes to src/update-notifier.h

  • Committer: mvo
  • Date: 2005-01-15 00:23:58 UTC
  • Revision ID: gustavo@niemeyer.net-20050115002358-469848491f936cd5
* big rename: upgrade-notifier -> update-notifier

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
/* update-notifier.h
 
1
/* upgrade-notifier.h
2
2
 * Copyright (C) 2004 Michiel Sikkes <michiel@eyesopened.nl>
3
3
 *
4
4
 * This library is free software; you can redistribute it and/or
23
23
#include <gnome.h>
24
24
#include <gconf/gconf.h>
25
25
#include <gconf/gconf-client.h>
 
26
#include <fam.h>
26
27
#include "eggtrayicon.h"
27
28
 
28
29
#define CLIPBOARD_NAME  "UPGRADE_NOTIFIER_SELECTION"
29
 
#define GCONF_KEY_DEFAULT_ACTION "/apps/update-notifier/default_action"
30
 
#define GCONF_KEY_NO_UPDATE_NOTIFICATIONS "/apps/update-notifier/no_show_notifications"
31
 
 
32
 
#define HOOKS_DIR "/var/lib/update-notifier/user.d/"
33
 
#define REBOOT_FILE "/var/run/reboot-required"
34
 
 
35
 
void invoke_with_gksu(gchar *cmd, gchar *descr);
36
 
 
37
 
 
38
 
typedef struct _TrayApplet TrayApplet;
39
 
struct _TrayApplet 
 
30
 
 
31
typedef struct _UpgradeNotifier UpgradeNotifier;
 
32
 
 
33
struct _UpgradeNotifier
40
34
{
41
35
   EggTrayIcon *tray_icon;
42
36
   GtkWidget *icon;
43
37
   GtkWidget *eventbox;
44
38
   GtkTooltips *tooltip;
45
39
   GtkWidget *menu;
46
 
 
47
 
   void *user_data;
48
 
};
49
 
 
50
 
typedef struct _UpgradeNotifier UpgradeNotifier;
51
 
struct _UpgradeNotifier
52
 
{
53
 
   TrayApplet *update;
54
 
   TrayApplet *reboot;
55
 
   TrayApplet *hook;
56
 
 
 
40
   gboolean is_displayed;
57
41
   GConfClient *gconf;
58
 
   guint update_finished_timer; 
59
 
 
60
 
   // bool if we have a dbus connection
61
 
   gboolean dbus_connection;
 
42
   FAMConnection fc;
62
43
   
63
44
   int num_upgrades;
64
45
};