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 312938 Details for
Bug 457151
gnome-ppp status icon transparent background patch
[?]
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]
eggtrayicon transparency patch
eggtrayicon-transparency.patch (text/plain), 2.80 KB, created by
Michal Ruzicka
on 2008-07-29 21:30:16 UTC
(
hide
)
Description:
eggtrayicon transparency patch
Filename:
MIME Type:
Creator:
Michal Ruzicka
Created:
2008-07-29 21:30:16 UTC
Size:
2.80 KB
patch
obsolete
>diff -Naur gnome-ppp-0.3.23.orig/src/eggtrayicon.c gnome-ppp-0.3.23/src/eggtrayicon.c >--- gnome-ppp-0.3.23.orig/src/eggtrayicon.c 2008-07-29 21:59:42.000000000 +0200 >+++ gnome-ppp-0.3.23/src/eggtrayicon.c 2008-07-29 22:00:30.000000000 +0200 >@@ -67,6 +67,9 @@ > static void egg_tray_icon_realize (GtkWidget *widget); > static void egg_tray_icon_unrealize (GtkWidget *widget); > >+static void egg_tray_icon_add (GtkContainer *container, >+ GtkWidget *widget); >+ > #ifdef GDK_WINDOWING_X11 > static void egg_tray_icon_update_manager_window (EggTrayIcon *icon, > gboolean dock_if_realized); >@@ -113,6 +116,7 @@ > { > GObjectClass *gobject_class = (GObjectClass *)klass; > GtkWidgetClass *widget_class = (GtkWidgetClass *)klass; >+ GtkContainerClass *container_class = (GtkContainerClass *)klass; > > parent_class = g_type_class_peek_parent (klass); > >@@ -121,6 +125,8 @@ > widget_class->realize = egg_tray_icon_realize; > widget_class->unrealize = egg_tray_icon_unrealize; > >+ container_class->add = egg_tray_icon_add; >+ > g_object_class_install_property (gobject_class, > PROP_ORIENTATION, > g_param_spec_enum ("orientation", >@@ -367,6 +373,36 @@ > > #endif > >+static gboolean >+transparent_expose_event (GtkWidget *widget, GdkEventExpose *event, gpointer user_data) >+{ >+ gdk_window_clear_area (widget->window, event->area.x, event->area.y, >+ event->area.width, event->area.height); >+ return FALSE; >+} >+ >+static void >+make_transparent_again (GtkWidget *widget, GtkStyle *previous_style, >+ gpointer user_data) >+{ >+ gdk_window_set_back_pixmap (widget->window, NULL, TRUE); >+} >+ >+static void >+make_transparent (GtkWidget *widget, gpointer user_data) >+{ >+ if (GTK_WIDGET_NO_WINDOW (widget) || GTK_WIDGET_APP_PAINTABLE (widget)) >+ return; >+ >+ gtk_widget_set_app_paintable (widget, TRUE); >+ gtk_widget_set_double_buffered (widget, FALSE); >+ gdk_window_set_back_pixmap (widget->window, NULL, TRUE); >+ g_signal_connect (widget, "expose_event", >+ G_CALLBACK (transparent_expose_event), NULL); >+ g_signal_connect_after (widget, "style_set", >+ G_CALLBACK (make_transparent_again), NULL); >+} >+ > static void > egg_tray_icon_realize (GtkWidget *widget) > { >@@ -381,6 +417,8 @@ > if (GTK_WIDGET_CLASS (parent_class)->realize) > GTK_WIDGET_CLASS (parent_class)->realize (widget); > >+ make_transparent (widget, NULL); >+ > screen = gtk_widget_get_screen (widget); > display = gdk_screen_get_display (screen); > xdisplay = gdk_x11_display_get_xdisplay (display); >@@ -413,6 +451,14 @@ > #endif > } > >+static void >+egg_tray_icon_add (GtkContainer *container, GtkWidget *widget) >+{ >+ g_signal_connect (widget, "realize", >+ G_CALLBACK (make_transparent), NULL); >+ GTK_CONTAINER_CLASS (parent_class)->add (container, widget); >+} >+ > EggTrayIcon * > egg_tray_icon_new_for_screen (GdkScreen *screen, const char *name) > {
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 457151
:
312937
|
312938
|
313052
|
313053
|
313054
|
313081
|
313082