~ubuntu-branches/ubuntu/raring/nautilus/raring

« back to all changes in this revision

Viewing changes to eel/eel-gdk-extensions.c

  • Committer: Package Import Robot
  • Author(s): Sebastien Bacher, Jeremy Bicha
  • Date: 2012-01-31 13:45:01 UTC
  • mfrom: (1.17.25)
  • Revision ID: package-import@ubuntu.com-20120131134501-yn7mqny7fgzx9fao
Tags: 1:3.3.4-0ubuntu1
* New upstream version which fixes:
  - "Opening Popupmenu in Context of Folder with List-View impossible?"
    (lp: #126540)
  - "'Create folder in here' context menu option for nautilus" (lp: #61786)
  - the file count and the size count change in opposite direction.
    (lp: #503330)
  - the mounts in the place menu should have a properties entry.
    (lp: #846289)
  - add command line option to select file (lp: #575719)
  - Media in 'Places' side bar should have same context menu as in 
    'Computer' (lp: #230098)
* debian/nautilus-data.install:
  - updated, ui and icons have been moved into gresources
* debian/patches/05_desktop_menu_export.patch:
   - updated to correctly include the gresources desktop definition

[ Jeremy Bicha ]
* New upstream release.
* debian/control.in:
  - Bump minimum GTK and glib
* Refreshed patches
* Dropped upstream patches:
  - 17_dont_allow_new_tab_on_desktop.patch
  - 18_fix_crash_in_get_current_uri.patch
  - 19_lazily_initialize_notification_service.patch
  - git_sideplace_sorting.patch
  - git_next_row.patch
  - git_dont_document_browser_option.patch
  - git_browser_compat.patch
  - git_bookmarks_reordering.patch
  - git_listview_context_menus.patch
  - git_use_gtk_grid.patch

Show diffs side-by-side

added added

removed removed

Lines of Context:
35
35
#include <stdlib.h>
36
36
#include <pango/pango.h>
37
37
 
38
 
/**
39
 
 * eel_gdk_rgba_is_dark:
40
 
 * 
41
 
 * Return true if the given color is `dark'
42
 
 */
43
 
gboolean
44
 
eel_gdk_rgba_is_dark (const GdkRGBA *color)
45
 
{
46
 
        int intensity;
47
 
 
48
 
        intensity = ((((int) (color->red) >> 8) * 77)
49
 
                     + (((int) (color->green) >> 8) * 150)
50
 
                     + (((int) (color->blue) >> 8) * 28)) >> 8;
51
 
 
52
 
        return intensity < 128;
53
 
}
54
 
 
55
38
EelGdkGeometryFlags
56
39
eel_gdk_parse_geometry (const char *string, int *x_return, int *y_return,
57
40
                             guint *width_return, guint *height_return)