100
100
* define them above, with file-level scope, and then add them to this
108
{ (void **) ¬ify_init, "notify_init" },
109
{ (void **) ¬ify_uninit, "notify_uninit" },
110
{ (void **) ¬ify_notification_show, "notify_notification_show" },
111
{ (void **) ¬ify_notification_new_with_status_icon,
112
"notify_notification_new_with_status_icon" },
113
{ (void **) ¬ify_notification_set_timeout,
114
"notify_notification_set_timeout" },
109
{ (void **) ¬ify_init, "notify_init" },
110
{ (void **) ¬ify_uninit, "notify_uninit" },
111
{ (void **) ¬ify_notification_show, "notify_notification_show" },
112
{ (void **) ¬ify_notification_new_with_status_icon,
113
"notify_notification_new_with_status_icon" },
114
{ (void **) ¬ify_notification_set_timeout,
115
"notify_notification_set_timeout" },
119
* Load each of the above symbols from libnotify, checking to make sure
122
for (i = 0; vtable[i].funcPtr != NULL; i++) {
123
*(vtable[i].funcPtr) = dlsym(libNotifyHandle, vtable[i].symName);
124
if ( *(vtable[i].funcPtr) == NULL) {
125
Debug("Could not find %s in libnotify\n", vtable[i].symName);
120
* Load each of the above symbols from libnotify, checking to make sure
123
for (i = 0; vtable[i].funcPtr != NULL; i++) {
124
*(vtable[i].funcPtr) = dlsym(libNotifyHandle, vtable[i].symName);
125
if ( *(vtable[i].funcPtr) == NULL) {
126
Debug("Could not find %s in libnotify\n", vtable[i].symName);
275
277
// IN: The left-click callback
279
282
if (!initialized) {
283
Notifier *n = g_new0(Notifier, 1);
286
n = g_new0(Notifier, 1);
284
287
iconPath = Str_Asprintf(NULL, "%s/share/icons/vmware.png", vmLibDir);
285
288
n->statusIcon = gtk_status_icon_new_from_file(iconPath);
286
289
gtk_status_icon_set_tooltip(n->statusIcon, shortMsg);