gitkLayout.c File Reference

layouting capabilities test for gitk. More...

#include "config.h"
#include <glib.h>
#include <stdio.h>
#include <libgitk/gitk.h>

Include dependency graph for gitkLayout.c:

Include dependency graph

Go to the source code of this file.

Functions

gboolean global_on_close (GitkDialogPtr dialog, gchar *widget_id, GitkEventPtr event, gpointer user_data)
 handle global close events like pressing ctrl-c or closing the dialog window

int main (int argc, char **argv)
 example main routine run it e.g ./bin/gitkLayout --gitk-renderer=gtk gitk-examples/gitkLayout_AddressBook.xml

gboolean main_on_clicked (gpointer dialog, gchar *widget_id, GitkEventPtr event, gpointer user_data)
 gets invoked when a action widget has been invoked

gboolean main_show (gchar *dialog_filename)
 build and show the choosen dialog


Variables

gboolean ret = TRUE
 application termination status


Detailed Description

layouting capabilities test for gitk.

Id
gitkLayout.c,v 1.19 2004/06/30 16:53:01 ensonic Exp

Author:
Stefan Kost <ensonic@users.sf.net>
Date:
Thu Jun 27 09:16:32 2002

This tool can run any GIML dialog definitions. It is well suited to test dialogs in various environments.

Definition in file gitkLayout.c.


Function Documentation

gboolean global_on_close GitkDialogPtr  dialog,
gchar *  widget_id,
GitkEventPtr  event,
gpointer  user_data
 

handle global close events like pressing ctrl-c or closing the dialog window

Todo:
we should add a dialog here asking "Are you sure ?"

Definition at line 30 of file gitkLayout.c.

References gitk_log, GitkDialogPtr, and GitkEventPtr.

int main int  argc,
char **  argv
 

example main routine run it e.g ./bin/gitkLayout --gitk-renderer=gtk gitk-examples/gitkLayout_AddressBook.xml

Definition at line 95 of file gitkLayout.c.

References _, bindtextdomain, gitk_done(), GITK_EVENT_TYPE_ON_CLOSE, gitk_init(), gitk_log, gitk_log1, gitk_log3, gitk_log_handler(), gitk_printf(), gitk_puts(), global_on_close(), main_show(), and textdomain.

Here is the call graph for this function:

gboolean main_on_clicked gpointer  dialog,
gchar *  widget_id,
GitkEventPtr  event,
gpointer  user_data
 

gets invoked when a action widget has been invoked

Definition at line 38 of file gitkLayout.c.

References gitk_event_loop_end(), gitk_log1, GitkEventPtr, and ret.

Here is the call graph for this function:

gboolean main_show gchar *  dialog_filename  ) 
 

build and show the choosen dialog

Definition at line 54 of file gitkLayout.c.

References _, GIML_ROOT_PATH, gitk_dialog_free(), gitk_dialog_hide(), gitk_dialog_new_from_file(), gitk_dialog_show(), gitk_event_loop_start(), GITK_EVENT_TYPE_ON_CLICKED, gitk_get_error_code(), gitk_get_error_str(), gitk_log, gitk_log1, gitk_printf(), and main_on_clicked().

Here is the call graph for this function:


Variable Documentation

gboolean ret = TRUE
 

application termination status

Definition at line 23 of file gitkLayout.c.


Generated on Thu Oct 28 10:59:39 2004 for gitk by doxygen 1.3.6