File: misc.h

package info (click to toggle)
gworldclock 1.4.4-1
  • links: PTS
  • area: main
  • in suites: sarge
  • size: 980 kB
  • ctags: 158
  • sloc: sh: 3,855; ansic: 2,228; makefile: 68; sed: 16
file content (27 lines) | stat: -rw-r--r-- 715 bytes parent folder | download | duplicates (6)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
/* various ancillary functions */

#ifndef GWORLDCLOCK_MISC
#define GWORLDCLOCK_MISC

#include <gdk/gdkkeysyms.h>
#include <gtk/gtk.h>

#define OK_BUTTON       1
#define CANCEL_BUTTON   2

void DestroyWindow(GtkWidget *w, gpointer window);

gint GotOK(GtkWidget *w, GdkEventKey *event,  gpointer Button);

gint GotOKInDialog(GtkWidget *w, GdkEventKey *event,  gpointer dialog);

/* find the length (in characters) of the longest entry in a GList
   containing string data. */
gint getLongestEntry(GList *list);

/* displays the message in an "OK" style dialog box.
   messageType indicates Warning, Error, etc (see GtkMessageDialog).
*/
void showMessageDialog( gchar *message, GtkMessageType messageType );

#endif