Skip to content
Snippets Groups Projects
Commit 505d6926 authored by Benedikt Meurer's avatar Benedikt Meurer
Browse files

2005-07-22 Benedikt Meurer <benny@xfce.org>

	* configure.in.in: Add --disable-debug option, which can be used to
	  disable all kinds of debugging support, and thereby may speed up
	  the whole application in certain cases.
	* thunar/thunar-statusbar.c: Use the foreground color from the selected
	  style instead of hard coding black for the animation.




(Old svn revision: 16404)
parent db6868cd
No related branches found
No related tags found
No related merge requests found
2005-07-22 Benedikt Meurer <benny@xfce.org>
* configure.in.in: Add --disable-debug option, which can be used to
disable all kinds of debugging support, and thereby may speed up
the whole application in certain cases.
* thunar/thunar-statusbar.c: Use the foreground color from the selected
style instead of hard coding black for the animation.
2005-07-21 Benedikt Meurer <benny@xfce.org>
* thunar/thunar-favourites-view.c: Add support for the LINK DnD action.
......
......@@ -37,6 +37,7 @@ AC_MINIX()
dnl check for basic programs
AC_PROG_CC()
AC_PROG_LD()
AC_PROG_INSTALL()
AC_PROG_LIBTOOL()
......@@ -60,11 +61,11 @@ dnl Check for the system flavour
AC_MSG_CHECKING([for system flavour])
case "$target_os" in
*bsd*)
FLAVOUR="bsd"
;;
FLAVOUR="bsd"
;;
*)
FLAVOUR="sysv"
;;
FLAVOUR="sysv"
;;
esac
AC_MSG_RESULT([$FLAVOUR])
......@@ -76,7 +77,26 @@ AC_CONFIG_LINKS(
])
dnl Check for debugging support
BM_DEBUG_SUPPORT()
AC_ARG_ENABLE([debug], AC_HELP_STRING([--disable-debug], [Disable debugging support]), [], [enable_debug=yes])
AC_MSG_CHECKING([whether to enable debugging support])
if test x"$enable_debug" != x"no"; then
CFLAGS="$CFLAGS -g3 -DG_DISABLE_DEPRECATED -Werror -Wall"
AC_MSG_RESULT([yes])
else
CPPFLAGS="$CPPFLAGS -DG_DISABLE_ASSERT -DG_DISABLE_CAST_CHECKS -DG_DISABLE_CHECKS"
AC_MSG_RESULT([no])
AC_MSG_CHECKING([whether $LD accepts -O1])
case `$LD -O1 -v 2>&1 </dev/null` in
*GNU* | *'with BFD'*)
LDFLAGS="$LDFLAGS -Wl,-O1"
AC_MSG_RESULT([yes])
;;
*)
AC_MSG_RESULT([no])
;;
esac
fi
AC_OUTPUT([
Makefile
......
......@@ -315,7 +315,7 @@ thunar_statusbar_icon_realize (GtkWidget *widget)
attr_mask = GDK_WA_X | GDK_WA_Y | GDK_WA_VISUAL | GDK_WA_COLORMAP;
widget->window = gdk_window_new (widget->parent->window, &attr, attr_mask);
gtk_style_attach (widget->style, widget->window);
widget->style = gtk_style_attach (widget->style, widget->window);
gtk_style_set_background (widget->style, widget->window, GTK_STATE_NORMAL);
gdk_window_set_user_data (widget->window, widget);
}
......@@ -460,16 +460,19 @@ thunar_statusbar_icon_expose_event (GtkWidget *widget,
/* render the animation */
if (thunar_statusbar_icon_get_loading (statusbar_icon))
{
GdkColor color;
cairo_t *cr;
gdouble n;
color = widget->style->fg[GTK_STATE_NORMAL];
cr = get_cairo_context (widget->window);
cairo_rotate (cr, (statusbar_icon->angle * 2.0 * M_PI) / 360.0);
for (n = 0.0; n < 2.0; n += 0.25)
{
cairo_set_source_rgba (cr, 0.0, 0.0, 0.0, (n - 0.1) / 1.9);
cairo_set_source_rgba (cr, color.red / 65535., color.green / 65535., color.blue / 65535., (n - 0.1) / 1.9);
cairo_arc (cr, cos (n * M_PI) / 3.0, sin (n * M_PI) / 3.0, 0.12, 0.0, 2 * M_PI);
cairo_fill (cr);
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment