diff --git a/ChangeLog b/ChangeLog index 64cecb443..d6a74bdbe 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,13 +1,36 @@ +2002-08-04 Havoc Pennington + + * src/theme.c (free_menu_ops): use MetaMenuIconType not button + type for the size of the menu ops array + (meta_theme_define_int_constant): return TRUE on success (how the + heck did this ever work?) + (meta_theme_define_float_constant): return TRUE on success + (meta_frame_style_validate): allow the "positional" buttons to + be omitted for now. + + * src/testgradient.c (render_multi): don't define N_COLORS twice + + * src/theme-viewer.c (run_theme_benchmark): don't define + ITERATIONS twice + + * src/theme.c (button_rect): handle new button types + (meta_button_type_to_string): update + (meta_button_type_from_string): update + + * src/theme.h (enum): add button types for the 6 possible button + positions. No way to reposition buttons still but this will allow + themes to go ahead and support doing so. + 2002-08-03 Craig Black * src/keybindings.c: (meta_display_process_key_event), - (process_tab_grab), (do_choose_window): change alt+tab - to a windowless grab, fixes #83499 + (process_tab_grab), (do_choose_window): change alt+tab to a + windowless grab, fixes #83499 2002-08-03 Craig Black - * src/display.c: (event_callback): Have ButtonPress and UnmapNotify - events account for a null grab window, fixes #87896 + * src/display.c: (event_callback): Have ButtonPress and + UnmapNotify events account for a null grab window, fixes #87896 2002-08-03 Gaute Lindkvist diff --git a/autogen.sh b/autogen.sh index ba38ea6ab..ac91e6467 100755 --- a/autogen.sh +++ b/autogen.sh @@ -12,6 +12,14 @@ FILE=src/display.c DIE=0 +AUTOMAKE=automake-1.4 +ACLOCAL=aclocal-1.4 + +($AUTOMAKE --version) < /dev/null > /dev/null 2>&1 || { + AUTOMAKE=automake + ACLOCAL=aclocal +} + (autoconf --version) < /dev/null > /dev/null 2>&1 || { echo echo "You must have autoconf installed to compile $PROJECT." @@ -20,7 +28,7 @@ DIE=0 DIE=1 } -(automake --version) < /dev/null > /dev/null 2>&1 || { +($AUTOMAKE --version) < /dev/null > /dev/null 2>&1 || { echo echo "You must have automake installed to compile $PROJECT." echo "Get ftp://sourceware.cygnus.com/pub/automake/automake-1.4.tar.gz" @@ -104,14 +112,14 @@ do echo "Running libtoolize..." libtoolize --force --copy fi - echo "Running aclocal $aclocalinclude ..." - aclocal $aclocalinclude + echo "Running $ACLOCAL $aclocalinclude ..." + $ACLOCAL $aclocalinclude if grep "^AM_CONFIG_HEADER" configure.in >/dev/null; then echo "Running autoheader..." autoheader fi - echo "Running automake --gnu $am_opt ..." - automake --add-missing --gnu $am_opt + echo "Running $AUTOMAKE --gnu $am_opt ..." + $AUTOMAKE --add-missing --gnu $am_opt echo "Running autoconf ..." autoconf ) diff --git a/src/display.c b/src/display.c index 2d72b7de1..15b96b905 100644 --- a/src/display.c +++ b/src/display.c @@ -1021,7 +1021,10 @@ event_callback (XEvent *event, if (window && window->frame && modified == window->frame->xwindow) - frame_was_receiver = TRUE; + { + frame_was_receiver = TRUE; + meta_topic (META_DEBUG_EVENTS, "Frame was receiver of event\n"); + } switch (event->type) { diff --git a/src/testgradient.c b/src/testgradient.c index 7d16b427c..ae7c125c9 100644 --- a/src/testgradient.c +++ b/src/testgradient.c @@ -201,6 +201,7 @@ render_multi (GdkDrawable *drawable, 0, 0); g_object_unref (G_OBJECT (pixbuf)); +#undef N_COLORS } static void diff --git a/src/theme-viewer.c b/src/theme-viewer.c index 5687a00cd..1f7cc0f1e 100644 --- a/src/theme-viewer.c +++ b/src/theme-viewer.c @@ -744,6 +744,8 @@ run_theme_benchmark (int client_width, g_object_unref (G_OBJECT (layout)); g_object_unref (G_OBJECT (pixmap)); gtk_widget_destroy (widget); + +#undef ITERATIONS } typedef struct diff --git a/src/theme.c b/src/theme.c index dd7d5b359..cc5e73db7 100644 --- a/src/theme.c +++ b/src/theme.c @@ -3556,20 +3556,24 @@ meta_frame_style_validate (MetaFrameStyle *style, i = 0; while (i < META_BUTTON_TYPE_LAST) { - j = 0; - while (j < META_BUTTON_STATE_LAST) - { - if (get_button (style, i, j) == NULL) + /* for now the "positional" buttons are optional */ + if (i >= META_BUTTON_TYPE_CLOSE) + { + j = 0; + while (j < META_BUTTON_STATE_LAST) { - g_set_error (error, META_THEME_ERROR, - META_THEME_ERROR_FAILED, - _("