metacity-dialog.c File Reference

Go to the source code of this file.

Defines

#define _(x)   dgettext (GETTEXT_PACKAGE, x)
#define N_(x)   x

Enumerations

enum  { COLUMN_TITLE, COLUMN_CLASS, COLUMN_LAST }

Functions

static Window window_from_string (const char *str)
static void on_realize (GtkWidget *dialog, void *data)
static int kill_window_question (const char *window_name, const char *parent_str, guint32 timestamp)
static char * latin1_to_utf8 (const char *text)
static GtkWidget * create_lame_apps_list (char **lame_apps)
static int warn_about_no_sm_support (char **lame_apps, guint32 timestamp)
static int error_about_command (const char *gconf_key, const char *command, const char *error, guint32 timestamp)
int main (int argc, char **argv)

Variables

static gchar * screen = NULL
static gchar * timestamp_string = NULL
static gboolean isset_kill_window_question = FALSE
static gboolean isset_warn_about_no_sm_support = FALSE
static gboolean isset_command_failed_error = FALSE
static gchar ** remaining_args
static const GOptionEntry options []


Define Documentation

#define _ (  )     dgettext (GETTEXT_PACKAGE, x)

Definition at line 32 of file metacity-dialog.c.

#define N_ (  )     x

Definition at line 33 of file metacity-dialog.c.


Enumeration Type Documentation

anonymous enum

Enumerator:
COLUMN_TITLE 
COLUMN_CLASS 
COLUMN_LAST 

Definition at line 148 of file metacity-dialog.c.


Function Documentation

static GtkWidget* create_lame_apps_list ( char **  lame_apps  )  [static]

Definition at line 156 of file metacity-dialog.c.

References _, COLUMN_CLASS, COLUMN_LAST, COLUMN_TITLE, latin1_to_utf8(), and NULL.

Referenced by warn_about_no_sm_support().

static int error_about_command ( const char *  gconf_key,
const char *  command,
const char *  error,
guint32  timestamp 
) [static]

Definition at line 297 of file metacity-dialog.c.

References _, and NULL.

Referenced by main().

static int kill_window_question ( const char *  window_name,
const char *  parent_str,
guint32  timestamp 
) [static]

Definition at line 82 of file metacity-dialog.c.

References _, label, NULL, on_realize(), and TRUE.

Referenced by main().

static char* latin1_to_utf8 ( const char *  text  )  [static]

Definition at line 131 of file metacity-dialog.c.

References FALSE.

int main ( int  argc,
char **  argv 
)

static void on_realize ( GtkWidget *  dialog,
void *  data 
) [static]

Definition at line 66 of file metacity-dialog.c.

References window_from_string().

Referenced by kill_window_question().

static int warn_about_no_sm_support ( char **  lame_apps,
guint32  timestamp 
) [static]

Definition at line 232 of file metacity-dialog.c.

References _, create_lame_apps_list(), NULL, and TRUE.

Referenced by main().

static Window window_from_string ( const char *  str  )  [static]

Definition at line 39 of file metacity-dialog.c.

References _, and NULL.


Variable Documentation

gboolean isset_command_failed_error = FALSE [static]

Definition at line 334 of file metacity-dialog.c.

Referenced by main().

gboolean isset_kill_window_question = FALSE [static]

Definition at line 332 of file metacity-dialog.c.

Referenced by main().

gboolean isset_warn_about_no_sm_support = FALSE [static]

Definition at line 333 of file metacity-dialog.c.

Referenced by main().

const GOptionEntry options[] [static]

Initial value:

 {
  { "screen", 0, 0, G_OPTION_ARG_STRING, &screen, NULL, NULL},
  { "timestamp", 0, 0, G_OPTION_ARG_STRING, &timestamp_string, NULL, NULL},
  { "kill-window-question", 'k', 0, G_OPTION_ARG_NONE, 
    &isset_kill_window_question, NULL, NULL},
  { "warn-about-no-sm-support", 'w', 0, G_OPTION_ARG_NONE, 
    &isset_warn_about_no_sm_support, NULL, NULL},
  { "command-failed-error", 'c', 0, G_OPTION_ARG_NONE, 
    &isset_command_failed_error, NULL, NULL},
  { G_OPTION_REMAINING, 0, 0, G_OPTION_ARG_STRING_ARRAY, 
    &remaining_args, NULL, NULL},
  { NULL}
}

Definition at line 337 of file metacity-dialog.c.

Referenced by main(), and meta_parse_options().

gchar** remaining_args [static]

Definition at line 335 of file metacity-dialog.c.

Referenced by main().

gchar* screen = NULL [static]

gchar* timestamp_string = NULL [static]

Definition at line 331 of file metacity-dialog.c.

Referenced by main().


Generated on Sat Aug 23 22:04:22 2008 for metacity by  doxygen 1.5.5