Login
[x]
Log in using an account from:
Fedora Account System
Red Hat Associate
Red Hat Customer
Or login using a Red Hat Bugzilla account
Forgot Password
Login:
Hide Forgot
Create an Account
Red Hat Bugzilla – Attachment 295537 Details for
Bug 433830
RFE: Zoomed background option
[?]
New
Simple Search
Advanced Search
My Links
Browse
Requests
Reports
Current State
Search
Tabular reports
Graphical reports
Duplicates
Other Reports
User Changes
Plotly Reports
Bug Status
Bug Severity
Non-Defaults
|
Product Dashboard
Help
Page Help!
Bug Writing Guidelines
What's new
Browser Support Policy
5.0.4.rh83 Release notes
FAQ
Guides index
User guide
Web Services
Contact
Legal
This site requires JavaScript to be enabled to function correctly, please enable it.
[patch]
patch to zoom a background image in xfdesktop
xfdesktop-4.4.0-backdrop-zoom.patch (text/plain), 2.18 KB, created by
Christoph Wickert
on 2008-02-21 16:47:03 UTC
(
hide
)
Description:
patch to zoom a background image in xfdesktop
Filename:
MIME Type:
Creator:
Christoph Wickert
Created:
2008-02-21 16:47:03 UTC
Size:
2.18 KB
patch
obsolete
>diff -Nur xfdesktop4-4.4.0/settings/appearance-settings.c xfdesktop4-4.4.0.new/settings/appearance-settings.c >--- xfdesktop4-4.4.0/settings/appearance-settings.c 2007-03-30 18:49:39.000000000 +0300 >+++ xfdesktop4-4.4.0.new/settings/appearance-settings.c 2007-03-30 18:50:32.000000000 +0300 >@@ -700,6 +700,7 @@ > gtk_combo_box_append_text(GTK_COMBO_BOX(combo), _("Tiled")); > gtk_combo_box_append_text(GTK_COMBO_BOX(combo), _("Stretched")); > gtk_combo_box_append_text(GTK_COMBO_BOX(combo), _("Scaled")); >+ gtk_combo_box_append_text(GTK_COMBO_BOX(combo), _("Zoomed")); > gtk_combo_box_set_active(GTK_COMBO_BOX(combo), bp->style); > gtk_label_set_mnemonic_widget(GTK_LABEL(label), combo); > gtk_widget_show(combo); >diff -Nur xfdesktop4-4.4.0/src/xfce-backdrop.c xfdesktop4-4.4.0.new/src/xfce-backdrop.c >--- xfdesktop4-4.4.0/src/xfce-backdrop.c 2007-01-20 23:18:37.000000000 +0200 >+++ xfdesktop4-4.4.0.new/src/xfce-backdrop.c 2007-03-30 18:50:01.000000000 +0300 >@@ -640,6 +640,22 @@ > interp, 255); > break; > >+ case XFCE_BACKDROP_IMAGE_ZOOMED: >+ xscale = (gdouble)w / iw; >+ yscale = (gdouble)h / ih; >+ if(xscale < yscale) { >+ xscale = yscale; >+ xo = (w - (iw * xscale)) * 0.5; >+ yo = 0; >+ } else { >+ yscale = xscale; >+ xo = 0; >+ yo = (h - (ih * yscale)) * 0.5; >+ } >+ gdk_pixbuf_composite(image, final_image, 0, 0, >+ w, h, xo, yo, xscale, yscale, interp, 255); >+ break; >+ > default: > g_critical("Invalid image style: %d\n", (gint)istyle); > } >diff -Nur xfdesktop4-4.4.0/src/xfce-backdrop.h xfdesktop4-4.4.0.new/src/xfce-backdrop.h >--- xfdesktop4-4.4.0/src/xfce-backdrop.h 2007-01-20 23:18:37.000000000 +0200 >+++ xfdesktop4-4.4.0.new/src/xfce-backdrop.h 2007-03-30 18:50:01.000000000 +0300 >@@ -48,7 +48,8 @@ > XFCE_BACKDROP_IMAGE_CENTERED, > XFCE_BACKDROP_IMAGE_TILED, > XFCE_BACKDROP_IMAGE_STRETCHED, >- XFCE_BACKDROP_IMAGE_SCALED >+ XFCE_BACKDROP_IMAGE_SCALED, >+ XFCE_BACKDROP_IMAGE_ZOOMED > } XfceBackdropImageStyle; > > typedef enum
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 433830
: 295537