~ubuntu-branches/ubuntu/oneiric/cairo-dock/oneiric-201110111206

« back to all changes in this revision

Viewing changes to src/cairo-dock-dialogs.h

  • Committer: Bazaar Package Importer
  • Author(s): Julien Lavergne
  • Date: 2009-06-20 23:46:54 UTC
  • mfrom: (1.1.4 upstream)
  • Revision ID: james.westby@ubuntu.com-20090620234654-hlg7pqvys6temuqq
Tags: 2.0.5-0ubuntu1
* New Upstream Version. (LP: #390053)
* debian/rules: 
 - Drop autoreconf call, it's fixed upstream.
 - Call dh_desktop for all desktop files.
* debian/control:
 - Add libgtkglext1-dev as depends for cairo-dock-dev.

Show diffs side-by-side

added added

removed removed

Lines of Context:
2
2
#ifndef __CAIRO_DIALOGS__
3
3
#define  __CAIRO_DIALOGS__
4
4
 
5
 
#include "cairo-dock-struct.h"
 
5
#include "cairo-dock-container.h"
6
6
G_BEGIN_DECLS
7
7
 
8
8
/**
16
16
* To add buttons, you specify a list of images. "ok" and "cancel" are key words for the default ok/cancel buttons. You also has to provide a callback function that will be called on click. When the user clicks on a button, the function is called with the number of the clicked button, counted from 0. -1 and -2 are set if the user pushed the Return or Escape keys. The dialog is de-referenced after the user's answer, so you have to reference the dialog in the callback if you want to keep the dialog alive.
17
17
*/
18
18
 
19
 
typedef void (* CairoDockActionOnAnswerFunc) (int iClickedButton, GtkWidget *pInteractiveWidget, gpointer data, CairoDialog *pDialog);
20
 
 
21
19
typedef gpointer CairoDialogRendererDataParameter;
22
20
typedef CairoDialogRendererDataParameter* CairoDialogRendererDataPtr;
23
21
typedef gpointer CairoDialogRendererConfigParameter;
46
44
        const gchar *cDisplayedName;
47
45
};
48
46
 
 
47
typedef void (* CairoDockActionOnAnswerFunc) (int iClickedButton, GtkWidget *pInteractiveWidget, gpointer data, CairoDialog *pDialog);
 
48
 
49
49
struct _CairoDialogAttribute {
50
50
        gchar *cImageFilePath;
51
51
        gint iNbFrames;  // 0 <=> 1.