~ubuntu-branches/ubuntu/precise/gnome-control-center/precise-updates

« back to all changes in this revision

Viewing changes to panels/sound/gvc-level-bar.c

  • Committer: Package Import Robot
  • Author(s): Sebastien Bacher, Jeremy Bicha, Ken VanDine
  • Date: 2012-02-15 23:16:31 UTC
  • mfrom: (1.1.56)
  • Revision ID: package-import@ubuntu.com-20120215231631-vk7me0mhofpsq0hp
Tags: 1:3.3.5-0ubuntu1
* Upload the new serie, that will bring in quite some fixes, we revert
  some problematic or risky changes as well
* The new version includes those fixes:
  - "Change Password in User Accounts panel focuses "New password" field, 
     skipping "Current password"" (lp: #821759)
  - The dialog to add online accounts should have a title 
    (lp: #822380)
  - "Remove Profile" button clickable in Color panel when 
     no profile selected (lp: #869603)
  - Move Removable Media into System Info (lp: #835880)
  - Sound preferences: mouse scrolling balance only works for right.
    (lp: #918017)
  - gnome-control-center SIGSEGV in actualize_printers_list() 
    (lp: #903009)
  - selecting preffered applications is not an info (lp: #890143)
  - Add a keyboard shortcut by default for take screenshot of a selection"
    (lp: #625518)
* debian/patches/revert_git_datetime_port.patch:
  - revert use of datetimed, we don't use systemd and ubuntu-system-service 
    doesn't support it yet
* debian/patches/revert_git_drop_library.patch:
  - consolidate "01_allow_external_panels.patch", don't drop the library
    we use it from other components on ubuntu, the patch will be improved
    later to not use a copy of files like it does in that version
* debian/patches/revert_git_stop_using_gconf.patch,
  debian/patches/revert_ua_gsettings.patch,
  debian/patches/revert_git_keyboard_gsettings.patch:
  - revert keyboard porting to gsettings, compiz still use gconf and we
    didn't update gnome-shell to the new serie (yet)

[ Jeremy Bicha ]
* New upstream release (Thanks Rico Tzchichholz!)
* debian/control.in:
  - Bump minimum dependency versions and add libwacom dependency
* debian/rules: Build without -Wl,-z,defs
* debian/watch: Watch for unstable releases
* Refreshed patches:
  - 01_allow_external_panels.patch
  - 04_add_theme_selection.patch
  - 50_ubuntu_systemwide_prefs.patch
  - 58_ubuntu_icon_views_redesign.patch
  - 59_install_gcm_components_on_demand.patch
  - 91_configure_cheese.patch
* Dropped upstream patches:
  - 00git_handle_media_dialog_close.patch
  - 03_show_wacom_under_unity.patch
  - 90_git_sound_tab_order.patch
  - 91_git_build_use_fontconfig.patch
  - 92_git_minimal_output_height.patch
  - 93_change_window_role_on_panel_change.patch
  - 94_git_adding_shortcuts.patch
  - 95_git_ctrlw_shortcut.patch
  - git_extra_keywords.patch

[ Ken VanDine ]
* debian/patches/96_sound_nua_panel.patch
  - refreshed with latest changes from ronoc

Show diffs side-by-side

added added

removed removed

Lines of Context:
65
65
        GtkOrientation orientation;
66
66
        GtkAdjustment *peak_adjustment;
67
67
        GtkAdjustment *rms_adjustment;
68
 
        int            scale;
 
68
        GvcLevelScale  scale;
69
69
        gdouble        peak_fraction;
70
70
        gdouble        rms_fraction;
71
71
        gdouble        max_peak;
518
518
 
519
519
static void
520
520
curved_rectangle (cairo_t *cr,
521
 
                  double   x0,
522
 
                  double   y0,
 
521
                  double   _x0,
 
522
                  double   _y0,
523
523
                  double   width,
524
524
                  double   height,
525
525
                  double   radius)
526
526
{
527
527
        double x1;
528
 
        double y1;
 
528
        double _y1;
529
529
 
530
 
        x1 = x0 + width;
531
 
        y1 = y0 + height;
 
530
        x1 = _x0 + width;
 
531
        _y1 = _y0 + height;
532
532
 
533
533
        if (!width || !height) {
534
534
                return;
536
536
 
537
537
        if (width / 2 < radius) {
538
538
                if (height / 2 < radius) {
539
 
                        cairo_move_to  (cr, x0, (y0 + y1) / 2);
540
 
                        cairo_curve_to (cr, x0 ,y0, x0, y0, (x0 + x1) / 2, y0);
541
 
                        cairo_curve_to (cr, x1, y0, x1, y0, x1, (y0 + y1) / 2);
542
 
                        cairo_curve_to (cr, x1, y1, x1, y1, (x1 + x0) / 2, y1);
543
 
                        cairo_curve_to (cr, x0, y1, x0, y1, x0, (y0 + y1) / 2);
 
539
                        cairo_move_to  (cr, _x0, (_y0 + _y1) / 2);
 
540
                        cairo_curve_to (cr, _x0 ,_y0, _x0, _y0, (_x0 + x1) / 2, _y0);
 
541
                        cairo_curve_to (cr, x1, _y0, x1, _y0, x1, (_y0 + _y1) / 2);
 
542
                        cairo_curve_to (cr, x1, _y1, x1, _y1, (x1 + _x0) / 2, _y1);
 
543
                        cairo_curve_to (cr, _x0, _y1, _x0, _y1, _x0, (_y0 + _y1) / 2);
544
544
                } else {
545
 
                        cairo_move_to  (cr, x0, y0 + radius);
546
 
                        cairo_curve_to (cr, x0, y0, x0, y0, (x0 + x1) / 2, y0);
547
 
                        cairo_curve_to (cr, x1, y0, x1, y0, x1, y0 + radius);
548
 
                        cairo_line_to (cr, x1, y1 - radius);
549
 
                        cairo_curve_to (cr, x1, y1, x1, y1, (x1 + x0) / 2, y1);
550
 
                        cairo_curve_to (cr, x0, y1, x0, y1, x0, y1 - radius);
 
545
                        cairo_move_to  (cr, _x0, _y0 + radius);
 
546
                        cairo_curve_to (cr, _x0, _y0, _x0, _y0, (_x0 + x1) / 2, _y0);
 
547
                        cairo_curve_to (cr, x1, _y0, x1, _y0, x1, _y0 + radius);
 
548
                        cairo_line_to (cr, x1, _y1 - radius);
 
549
                        cairo_curve_to (cr, x1, _y1, x1, _y1, (x1 + _x0) / 2, _y1);
 
550
                        cairo_curve_to (cr, _x0, _y1, _x0, _y1, _x0, _y1 - radius);
551
551
                }
552
552
        } else {
553
553
                if (height / 2 < radius) {
554
 
                        cairo_move_to  (cr, x0, (y0 + y1) / 2);
555
 
                        cairo_curve_to (cr, x0, y0, x0 , y0, x0 + radius, y0);
556
 
                        cairo_line_to (cr, x1 - radius, y0);
557
 
                        cairo_curve_to (cr, x1, y0, x1, y0, x1, (y0 + y1) / 2);
558
 
                        cairo_curve_to (cr, x1, y1, x1, y1, x1 - radius, y1);
559
 
                        cairo_line_to (cr, x0 + radius, y1);
560
 
                        cairo_curve_to (cr, x0, y1, x0, y1, x0, (y0 + y1) / 2);
 
554
                        cairo_move_to  (cr, _x0, (_y0 + _y1) / 2);
 
555
                        cairo_curve_to (cr, _x0, _y0, _x0 , _y0, _x0 + radius, _y0);
 
556
                        cairo_line_to (cr, x1 - radius, _y0);
 
557
                        cairo_curve_to (cr, x1, _y0, x1, _y0, x1, (_y0 + _y1) / 2);
 
558
                        cairo_curve_to (cr, x1, _y1, x1, _y1, x1 - radius, _y1);
 
559
                        cairo_line_to (cr, _x0 + radius, _y1);
 
560
                        cairo_curve_to (cr, _x0, _y1, _x0, _y1, _x0, (_y0 + _y1) / 2);
561
561
                } else {
562
 
                        cairo_move_to  (cr, x0, y0 + radius);
563
 
                        cairo_curve_to (cr, x0 , y0, x0 , y0, x0 + radius, y0);
564
 
                        cairo_line_to (cr, x1 - radius, y0);
565
 
                        cairo_curve_to (cr, x1, y0, x1, y0, x1, y0 + radius);
566
 
                        cairo_line_to (cr, x1, y1 - radius);
567
 
                        cairo_curve_to (cr, x1, y1, x1, y1, x1 - radius, y1);
568
 
                        cairo_line_to (cr, x0 + radius, y1);
569
 
                        cairo_curve_to (cr, x0, y1, x0, y1, x0, y1 - radius);
 
562
                        cairo_move_to  (cr, _x0, _y0 + radius);
 
563
                        cairo_curve_to (cr, _x0 , _y0, _x0 , _y0, _x0 + radius, _y0);
 
564
                        cairo_line_to (cr, x1 - radius, _y0);
 
565
                        cairo_curve_to (cr, x1, _y0, x1, _y0, x1, _y0 + radius);
 
566
                        cairo_line_to (cr, x1, _y1 - radius);
 
567
                        cairo_curve_to (cr, x1, _y1, x1, _y1, x1 - radius, _y1);
 
568
                        cairo_line_to (cr, _x0 + radius, _y1);
 
569
                        cairo_curve_to (cr, _x0, _y1, _x0, _y1, _x0, _y1 - radius);
570
570
                }
571
571
        }
572
572