diff options
author | Havoc Pennington <hp@pobox.com> | 2002-01-28 02:09:12 +0000 |
---|---|---|
committer | Havoc Pennington <hp@src.gnome.org> | 2002-01-28 02:09:12 +0000 |
commit | 8ddeb4f953148473978443f94e6cf14e2d078f1e (patch) | |
tree | 64ca1ae2994be237988171819e6f17bcc26c62a6 /src/util.c | |
parent | 33dd196cba189d17ab67cdf6cb3aed702a82e60c (diff) | |
download | metacity-8ddeb4f953148473978443f94e6cf14e2d078f1e.tar.gz |
move in here so util.c doesn't require display.[hc]
2002-01-27 Havoc Pennington <hp@pobox.com>
* src/display.c (meta_set_syncing): move in here so util.c doesn't
require display.[hc]
* src/theme.h, src/theme.c: implement coordinate expression
parser, write MetaShapeSpec declaration
* src/util.c (meta_exit): move in here so we can link
to util.c with a different main()
* src/theme.h: rename the MetaWindow* enums to MetaFrame*
Diffstat (limited to 'src/util.c')
-rw-r--r-- | src/util.c | 34 |
1 files changed, 7 insertions, 27 deletions
@@ -21,7 +21,6 @@ #include "util.h" #include "main.h" -#include "display.h" #include <stdio.h> #include <stdlib.h> @@ -29,7 +28,6 @@ static gboolean is_verbose = FALSE; static gboolean is_debugging = FALSE; -static gboolean is_syncing = FALSE; static int no_prefix = 0; static FILE* logfile = NULL; @@ -88,31 +86,6 @@ meta_set_debugging (gboolean setting) is_debugging = setting; } -gboolean -meta_is_syncing (void) -{ - return is_syncing; -} - -void -meta_set_syncing (gboolean setting) -{ - if (setting != is_syncing) - { - GSList *tmp; - - is_syncing = setting; - - tmp = meta_displays_list (); - while (tmp != NULL) - { - MetaDisplay *display = tmp->data; - XSynchronize (display->xdisplay, is_syncing); - tmp = tmp->next; - } - } -} - void meta_debug_spew (const char *format, ...) { @@ -300,3 +273,10 @@ meta_pop_no_msg_prefix (void) --no_prefix; } + +void +meta_exit (MetaExitCode code) +{ + + exit (code); +} |