AC_CHECK_LIB(Xext, XShapeCombineMask, LIBS="${LIBS} -lXext",
echo "Can't find Xext library" ; exit 1, "${X_LIBS}")
-dnl Checking for gdk-pixbuf library
-dnl The path to 'gdk-pixbuf-config' must be in your $PATH environment variable. If not,
-dnl you can try setting the $GDK_PIXBUF_CONFIG environment variable to the complete path
-dnl and filename where 'gdk-pixbuf-config' is located like in this example:
-dnl GDK_PIXBUF_CONFIG="/opt/gnome-1.4/bin/gdk-pixbuf-config" ./configure
-AM_PATH_GDK_PIXBUF(0.7.0,,AC_MSG_ERROR([gdk-pixbuf >= 0.7.0 is required]))
-CFLAGS="${CFLAGS} ${GDK_PIXBUF_CFLAGS}"
-LIBS="${LIBS} ${GDK_PIXBUF_LIBS}"
-
AC_CHECK_HEADERS(math.h, ,dnl
echo "Can't find header file for math library" ; exit 1)
dnl Checking for math library
#include <math.h>
#include <time.h>
#include <sys/types.h>
-#include <gdk-pixbuf/gdk-pixbuf.h>
#include "common.h"
#include "dockapp.h"
#include <math.h>
#include <time.h>
#include <sys/types.h>
-#include <gdk-pixbuf/gdk-pixbuf.h>
#include "common.h"
#include "dockapp.h"
int status;
int gravity = 0; /* Used to store the gravity value returned by XWMGeometry,
but not used. */
+ char *app_name = "hvclock";
/* Opening a connection to the X server. */
dockapp.display = XOpenDisplay( display_arg );
/* Setting the WM_CLASS property. */
{
- char *app_name = argv[0];
XClassHint wm_class;
/* The res_name member contains the application name.
{
XTextProperty text_prop;
- char *app_name = argv[0];
const int string_count = 1;
status = XStringListToTextProperty( &app_name, string_count, &text_prop );
#include <sys/wait.h>
#include <sys/types.h>
#include <sys/stat.h>
-#include <gdk-pixbuf/gdk-pixbuf.h>
#include "common.h"
#include "dockapp.h"
/* Initialization */
ParseCommandLineOptions( argc, argv );
- /* We must call gdk_init_check() manually. Gtk+ or Gnome applications don't need to do
- that because gtk_init() or gnome_init() do it automatically. */
- status = gdk_init_check( &argc, &argv );
- if( status == 0 ) {
- fprintf( stderr,
- "%s: GDK initialization failed, check your $DISPLAY environment variable\n",
- PACKAGE );
- ErrorLocation( __FILE__, __LINE__ );
- exit( EXIT_FAILURE );
- }
-
- (void) gdk_rgb_init();
-
/* Initialize callback function pointers. */
ProcessXlibEventsInit( SingleClick, NULL );