Your message dated Fri, 11 Feb 2011 13:27:39 +0900
with message-id <[email protected]>
and subject line Re: uim-applet does not fit transparent panels
has caused the Debian Bug report #321705,
regarding uim-applet does not fit transparent panels
to be marked as done.
This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.
(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [email protected]
immediately.)
--
321705: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=321705
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Package: uim-applet-gnome
Version: 1:0.4.7-1
Severity: minor
Tags: patch
The look of uim applet does not react to changes in the background of a panel,
so looks a little weird on transparent panels. Attached is a patch that is
borrowed from gnome-applets' source
(gnome-applets-2.10.1/gweather/gweather-applet.c).
--
Masaki Oita <[email protected]>
--- uim-0.4.7/helper/toolbar-applet-gnome.c.orig 2005-08-06 21:23:25.344919777 -0400
+++ uim-0.4.7/helper/toolbar-applet-gnome.c 2005-08-06 21:27:28.132491523 -0400
@@ -90,17 +90,17 @@
/* Opens gnome help application
*/
#if 0
-static void
+static void
display_help_dialog(BonoboUIComponent *uic, gpointer data, const gchar *verbname)
{
GError *error = NULL;
-
+
gnome_help_display("Uim", NULL, &error);
if (error)
{
GtkWidget *dialog;
- dialog = gtk_message_dialog_new(NULL,
+ dialog = gtk_message_dialog_new(NULL,
GTK_DIALOG_MODAL | GTK_DIALOG_DESTROY_WITH_PARENT,
GTK_MESSAGE_ERROR, GTK_BUTTONS_OK,
error->message);
@@ -120,22 +120,64 @@
/* GdkPixbuf *icon;*/
GtkWidget *dialog;
const char *authors[] = {"uim Project", NULL};
-
+
/* Feel free to put your names here translators */
char *translators = _("TRANSLATORS");
-
+
/* icon = gdk_pixbuf_new_from_xpm_data(ICON_APPLET);*/
-
+
dialog = GTK_WIDGET(gnome_about_new (_("Uim Applet for GNOME"), VERSION, "Copyright 2003-2005 uim Project.",
_("Applet for indicate uim's status"),
- (const char **) authors, NULL,
- strcmp("TRANSLATORS", translators) ? translators : NULL,
+ (const char **) authors, NULL,
+ strcmp("TRANSLATORS", translators) ? translators : NULL,
NULL));
-
+
gtk_widget_show(GTK_WIDGET(dialog));
}
+static void
+change_background_cb (PanelApplet *app,
+ PanelAppletBackgroundType type,
+ GdkColor *color,
+ GdkPixmap *pixmap,
+ gpointer data)
+{
+ GtkRcStyle *rc_style;
+ GtkStyle *style;
+
+ /* reset style */
+ gtk_widget_set_style (GTK_WIDGET (app), NULL);
+ rc_style = gtk_rc_style_new ();
+ gtk_widget_modify_style (GTK_WIDGET (app), rc_style);
+ g_object_unref (rc_style);
+
+ switch (type) {
+ case PANEL_COLOR_BACKGROUND:
+ gtk_widget_modify_bg (GTK_WIDGET (app),
+ GTK_STATE_NORMAL, color);
+ break;
+
+ case PANEL_PIXMAP_BACKGROUND:
+ style = gtk_style_copy (
+ GTK_WIDGET (app)->style);
+ if (style->bg_pixmap[GTK_STATE_NORMAL])
+ g_object_unref
+ (style->bg_pixmap[GTK_STATE_NORMAL]);
+ style->bg_pixmap[GTK_STATE_NORMAL] = g_object_ref
+ (pixmap);
+ gtk_widget_set_style (GTK_WIDGET (app),
+ style);
+ break;
+
+ case PANEL_NO_BACKGROUND:
+ default:
+ break;
+ }
+
+}
+
+
static gboolean
uim_applet_new(PanelApplet *applet,
const gchar *iid,
@@ -143,7 +185,7 @@
{
GtkWidget *toolbar;
uimapplet = applet;
-
+
if (strcmp (iid, "OAFIID:GNOME_UimApplet") != 0)
return FALSE;
@@ -151,7 +193,9 @@
toolbar = (GtkWidget*)uim_helper_applet_new();
- gtk_container_add (GTK_CONTAINER (applet), toolbar);
+ gtk_container_add (GTK_CONTAINER (applet), toolbar);
+ g_signal_connect (G_OBJECT (applet), "change_background",
+ G_CALLBACK (change_background_cb), NULL);
gtk_widget_show_all (GTK_WIDGET (applet));
panel_applet_setup_menu(applet,
--- End Message ---
--- Begin Message ---
fixed 321705 1:1.1.0-1
thanks
fixed in r3468, r3472 (trunk, branches/1.1)
--
Regards,
dai
GPG Fingerprint = 0B29 D88E 42E6 B765 B8D8 EA50 7839 619D D439 668E
signature.asc
Description: Digital signature
--- End Message ---