Skip to content

Instantly share code, notes, and snippets.

@shamun
Created July 7, 2011 17:05
Show Gist options
  • Save shamun/1069991 to your computer and use it in GitHub Desktop.
Save shamun/1069991 to your computer and use it in GitHub Desktop.
static void
_midori_browser_update_progress (MidoriBrowser* browser,
MidoriView* view)
{
MidoriLocationAction* action;
gdouble progress;
action = MIDORI_LOCATION_ACTION (_action_by_name (browser, "Location"));
progress = midori_view_get_progress (view);
/* When we are finished, we don't want to *see* progress anymore */
if (midori_view_get_load_status (view) == MIDORI_LOAD_FINISHED)
progress = 0.0;
/* When loading we want to see at minimum 10% progress */
else
progress = CLAMP (progress, 0.1, 1.0);
midori_location_action_set_progress (action, progress);
}
[root@example tmp]# git clone git://git.xfce.org/apps/midori
Cloning into midori...
remote: Counting objects: 18103, done.
remote: Compressing objects: 100% (6453/6453), done.
remote: Total 18103 (delta 14163), reused 14938 (delta 11634)
Receiving objects: 100% (18103/18103), 7.38 MiB | 1.33 MiB/s, done.
Resolving deltas: 100% (14163/14163), done.
[root@example midori]# ./waf configure
Checking for program gcc or cc : /usr/lib/ccache/gcc
Checking for program cpp : /usr/bin/cpp
Checking for program ar : /usr/bin/ar
Checking for program ranlib : /usr/bin/ranlib
Checking for gcc : ok
Checking for program valac : /usr/bin/valac
Checking for gobject-2.0 : yes
Checking for gthread-2.0 : yes
Checking for program version valac >= 0.1.6 : ok 0.12.0
Checking for program glib-genmarshal : /usr/bin/glib-genmarshal
Checking for program glib-mkenums : /usr/bin/glib-mkenums
Checking for program msgfmt : /usr/bin/msgfmt
Checking for program intltool-merge : /usr/bin/intltool-merge
Checking for header locale.h : yes
Checking for program rsvg-convert : /usr/bin/rsvg-convert
Checking for unique-1.0 >= 0.9 : no
Checking for libnotify >= : no
Checking for library m : yes
Checking for gmodule-2.0 >= 2.8.0 : yes
Checking for gthread-2.0 >= 2.8.0 : yes
Checking for gio-2.0 >= 2.16.0 : yes
Checking for x11 >= : yes
Checking for header X11/extensions/scrnsaver.h : not found
Checking for library Xss : not found
Checking for gtk+-2.0 >= 2.10.0 : Package gtk+-2.0 was not found in the pkg-config search path.
Perhaps you should add the directory containing `gtk+-2.0.pc'
to the PKG_CONFIG_PATH environment variable
No package 'gtk+-2.0' found
/tmp/midori/wscript:164: error: the configuration failed (see '/tmp/midori/_build_/config.log')
[root@example midori]#
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment