* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
- * License along with this library; if not, write to the
- * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
- * Boston, MA 02111-1307, USA.
+ * License along with this library. If not, see <http://www.gnu.org/licenses/>.
*/
/*
if (focus_child && gtk_widget_has_visible_focus (focus_child))
{
GtkStyleContext *context;
- GtkStateFlags state;
border_width = gtk_container_get_border_width (GTK_CONTAINER (widget));
context = gtk_widget_get_style_context (widget);
- state = gtk_widget_get_state_flags (widget);
-
- gtk_style_context_save (context);
- gtk_style_context_set_state (context, state);
gtk_render_focus (context, cr, border_width, border_width,
gtk_widget_get_allocated_width (widget) - 2 * border_width,
gtk_widget_get_allocated_height (widget) - 2 * border_width);
-
- gtk_style_context_restore (context);
}
return retval;
gtk_tray_icon_manager_window_destroyed (icon);
}
else
- GTK_NOTE (PLUGSOCKET,
- g_print ("GtkStatusIcon %p: got other message on manager window\n", icon));
+ {
+ GTK_NOTE (PLUGSOCKET,
+ g_print ("GtkStatusIcon %p: got other message on manager window\n", icon));
+ }
}
return GDK_FILTER_CONTINUE;
}
}
else
- GTK_NOTE (PLUGSOCKET,
- g_print ("GtkStatusIcon %p: no tray manager found\n", icon));
+ {
+ GTK_NOTE (PLUGSOCKET,
+ g_print ("GtkStatusIcon %p: no tray manager found\n", icon));
+ }
}
static void
if (icon->priv->manager_visual_rgba)
{
/* Set a transparent background */
- GdkColor transparent = { 0, 0, 0, 0 }; /* Only pixel=0 matters */
- gdk_window_set_background (window, &transparent);
+ GdkRGBA transparent = { 0.0, 0.0, 0.0, 0.0 };
+ gdk_window_set_background_rgba (window, &transparent);
}
else
{