Fixed to compile.

This commit is contained in:
Christian Hammond 2004-09-25 19:59:43 +00:00
parent 22e87adf07
commit 8ee064f00a
4 changed files with 25 additions and 13 deletions

View File

@ -1,3 +1,10 @@
Sat Sep 25 12:59:26 PDT 2004 Christian Hammond <chipx86@gnupdate.org>
* libnotify/notify.c:
* tests/test-animation.c:
* tests/test-default-action.c:
- Fixed to compile.
Wed Sep 01 00:39:23 PDT 2004 Christian Hammond <chipx86@gnupdate.org>
* docs/ChangeLog:

View File

@ -1,5 +1,5 @@
/** -*- mode: c-mode; tab-width: 4; indent-tabs-mode: t; -*-
*
/* -*- mode: c-mode; tab-width: 4; indent-tabs-mode: t; -*- */
/**
* @file libnotify/notify.c Notifications library
*
* @Copyright (C) 2004 Christian Hammond <chipx86@chipx86.com>

View File

@ -35,10 +35,10 @@ int frames = 10;
GdkPixbuf **generate_animation()
{
int i;
GdkPixbuf *file = gdk_pixbuf_new_from_file("applet-critical.png");
GdkPixbuf *file = gdk_pixbuf_new_from_file("applet-critical.png", NULL);
double alpha = 1.0;
GdkPixbuf **array = malloc(sizeof(GdkPixbuf *) * frames);
GdkPixbuf **array = g_malloc(sizeof(GdkPixbuf *) * frames);
for (i = 0; i < frames; i++)
{
@ -54,13 +54,17 @@ GdkPixbuf **generate_animation()
array[i] = buf;
}
return array;
}
int main() {
int main()
{
int i;
notify_init("Animations");
for (int i = 0; i < frames; i++)
for (i = 0; i < frames; i++)
{
}

View File

@ -30,9 +30,10 @@
#include <glib.h>
#include <dbus/dbus.h>
#include <dbus/dbus-glib.h>
#include <dbus/dbus-glib-lowlevel.h>
GMainLoop *loop;
NotifyHandle *n;
static GMainLoop *loop;
static NotifyHandle *n;
static void callback(NotifyHandle *handle, guint32 uid, void *user_data)
{