Fixed to compile.
This commit is contained in:
parent
22e87adf07
commit
8ee064f00a
|
@ -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:
|
||||
|
|
|
@ -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>
|
||||
|
|
|
@ -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++)
|
||||
{
|
||||
|
||||
}
|
||||
|
|
|
@ -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)
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue