diff options
author | Ted Gould <ted@canonical.com> | 2009-10-08 10:54:56 -0400 |
---|---|---|
committer | Ted Gould <ted@canonical.com> | 2009-10-08 10:54:56 -0400 |
commit | 69960ed469a9907deb10801f13f77f6b333c8163 (patch) | |
tree | 06bf0c866f89990eae7013fbd1b9d47132bcb3bc | |
parent | 9ace1e376aac193ba04bcfb0365af774bf96a4e5 (diff) | |
parent | 69c44b63c492193ea74df9ff48e82be5526b7b5f (diff) | |
download | ayatana-indicator-session-69960ed469a9907deb10801f13f77f6b333c8163.tar.gz ayatana-indicator-session-69960ed469a9907deb10801f13f77f6b333c8163.tar.bz2 ayatana-indicator-session-69960ed469a9907deb10801f13f77f6b333c8163.zip |
Changing the icon so that if you are disconnected it is
'system-shutdown-panel' and making sure that we see it
sometimes by not allocating the EmpathyAccountManager isn't
allocated until status is set. (LP: #432635)
-rw-r--r-- | .bzrignore | 7 | ||||
-rw-r--r-- | data/icons/16x16/actions/Makefile.am | 1 | ||||
-rw-r--r-- | data/icons/16x16/actions/system-shutdown-panel.png | bin | 0 -> 699 bytes | |||
-rw-r--r-- | data/icons/22x22/actions/Makefile.am | 1 | ||||
-rw-r--r-- | data/icons/22x22/actions/system-shutdown-panel.png | bin | 0 -> 1339 bytes | |||
-rw-r--r-- | data/icons/24x24/actions/Makefile.am | 1 | ||||
-rw-r--r-- | data/icons/24x24/actions/system-shutdown-panel.png | bin | 0 -> 1355 bytes | |||
-rw-r--r-- | data/icons/scalable/actions/Makefile.am | 1 | ||||
-rw-r--r-- | data/icons/scalable/actions/system-shutdown-panel.svg | 247 | ||||
-rw-r--r-- | debian/changelog | 9 | ||||
-rw-r--r-- | src/indicator-session.c | 4 | ||||
-rw-r--r-- | src/status-provider-mc5.c | 7 | ||||
-rw-r--r-- | src/status-service.c | 2 |
13 files changed, 273 insertions, 7 deletions
@@ -47,3 +47,10 @@ src/status-provider-telepathy-marshal.h src/status-provider-mc5-marshal.c src/status-provider-mc5-marshal.h data/indicator-session.schemas +src/users-service-client.h +src/users-service-marshal.c +src/users-service-marshal.h +indicator-session-[0-9].[0-9].[0-9].tar.gz +indicator-session-[0-9].[0-9].tar.gz +indicator-session-[0-9].[0-9].[0-9].tar.gz.asc +indicator-session-[0-9].[0-9].tar.gz.asc diff --git a/data/icons/16x16/actions/Makefile.am b/data/icons/16x16/actions/Makefile.am index 5aa276c..417ab60 100644 --- a/data/icons/16x16/actions/Makefile.am +++ b/data/icons/16x16/actions/Makefile.am @@ -2,6 +2,7 @@ iconsdir = $(INDICATORICONSDIR)/hicolor/16x16/actions icons_DATA = \ + system-shutdown-panel.png \ system-shutdown.png \ system-restart.png \ system-log-out.png diff --git a/data/icons/16x16/actions/system-shutdown-panel.png b/data/icons/16x16/actions/system-shutdown-panel.png Binary files differnew file mode 100644 index 0000000..ef69a83 --- /dev/null +++ b/data/icons/16x16/actions/system-shutdown-panel.png diff --git a/data/icons/22x22/actions/Makefile.am b/data/icons/22x22/actions/Makefile.am index 73cdd09..029ad1c 100644 --- a/data/icons/22x22/actions/Makefile.am +++ b/data/icons/22x22/actions/Makefile.am @@ -2,6 +2,7 @@ iconsdir = $(INDICATORICONSDIR)/hicolor/22x22/actions icons_DATA = \ + system-shutdown-panel.png \ system-shutdown.png \ system-restart.png \ system-log-out.png diff --git a/data/icons/22x22/actions/system-shutdown-panel.png b/data/icons/22x22/actions/system-shutdown-panel.png Binary files differnew file mode 100644 index 0000000..aef0e91 --- /dev/null +++ b/data/icons/22x22/actions/system-shutdown-panel.png diff --git a/data/icons/24x24/actions/Makefile.am b/data/icons/24x24/actions/Makefile.am index 55c63d1..aebdf14 100644 --- a/data/icons/24x24/actions/Makefile.am +++ b/data/icons/24x24/actions/Makefile.am @@ -2,6 +2,7 @@ iconsdir = $(INDICATORICONSDIR)/hicolor/24x24/actions icons_DATA = \ + system-shutdown-panel.png \ system-shutdown.png \ system-restart.png \ system-log-out.png diff --git a/data/icons/24x24/actions/system-shutdown-panel.png b/data/icons/24x24/actions/system-shutdown-panel.png Binary files differnew file mode 100644 index 0000000..c1cca10 --- /dev/null +++ b/data/icons/24x24/actions/system-shutdown-panel.png diff --git a/data/icons/scalable/actions/Makefile.am b/data/icons/scalable/actions/Makefile.am index 39b4177..26ee574 100644 --- a/data/icons/scalable/actions/Makefile.am +++ b/data/icons/scalable/actions/Makefile.am @@ -2,6 +2,7 @@ iconsdir = $(INDICATORICONSDIR)/hicolor/scalable/actions icons_DATA = \ + system-shutdown-panel.svg \ system-restart.svg \ system-log-out.svg \ system-shutdown.svg diff --git a/data/icons/scalable/actions/system-shutdown-panel.svg b/data/icons/scalable/actions/system-shutdown-panel.svg new file mode 100644 index 0000000..fc60baf --- /dev/null +++ b/data/icons/scalable/actions/system-shutdown-panel.svg @@ -0,0 +1,247 @@ +<?xml version="1.0" encoding="UTF-8" standalone="no"?> +<!-- Created with Inkscape (http://www.inkscape.org/) --> +<svg + xmlns:dc="http://purl.org/dc/elements/1.1/" + xmlns:cc="http://web.resource.org/cc/" + xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" + xmlns:svg="http://www.w3.org/2000/svg" + xmlns="http://www.w3.org/2000/svg" + xmlns:xlink="http://www.w3.org/1999/xlink" + xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd" + xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape" + sodipodi:docname="gnome-shutdown.svg" + sodipodi:docbase="/home/dobey/Projects/gnome-icon-theme/scalable/apps" + inkscape:version="0.45" + sodipodi:version="0.32" + id="svg11142" + height="48" + width="48" + version="1.0" + inkscape:output_extension="org.inkscape.output.svg.inkscape"> + <defs + id="defs3"> + <linearGradient + id="linearGradient4749"> + <stop + id="stop4751" + offset="0" + style="stop-color:#ffffff;stop-opacity:1;" /> + <stop + style="stop-color:#ffffff;stop-opacity:0.0000000;" + offset="0.50000000" + id="stop4757" /> + <stop + id="stop4753" + offset="1.0000000" + style="stop-color:#ffffff;stop-opacity:1.0000000;" /> + </linearGradient> + <linearGradient + id="linearGradient11264" + inkscape:collect="always"> + <stop + id="stop11266" + offset="0" + style="stop-color:#000000;stop-opacity:1;" /> + <stop + id="stop11268" + offset="1" + style="stop-color:#000000;stop-opacity:0;" /> + </linearGradient> + <linearGradient + id="linearGradient11178"> + <stop + style="stop-color:#d1d1cc;stop-opacity:1.0000000;" + offset="0.0000000" + id="stop11180" /> + <stop + id="stop4735" + offset="0.50000000" + style="stop-color:#d1d1d1;stop-opacity:1.0000000;" /> + <stop + style="stop-color:#b9b9b9;stop-opacity:1.0000000;" + offset="1.0000000" + id="stop11188" /> + </linearGradient> + <linearGradient + id="linearGradient11164"> + <stop + id="stop11166" + offset="0" + style="stop-color:#eeeeec;stop-opacity:1;" /> + <stop + style="stop-color:#c6c6bf;stop-opacity:1.0000000;" + offset="0.26988637" + id="stop11172" /> + <stop + id="stop11176" + offset="0.37900311" + style="stop-color:#f9f9f8;stop-opacity:1.0000000;" /> + <stop + id="stop11174" + offset="0.75000000" + style="stop-color:#c8c8c2;stop-opacity:1.0000000;" /> + <stop + id="stop11168" + offset="1.0000000" + style="stop-color:#eeeeec;stop-opacity:1.0000000;" /> + </linearGradient> + <linearGradient + gradientUnits="userSpaceOnUse" + y2="23.071428" + x2="42.471249" + y1="23.071428" + x1="7.1433797" + id="linearGradient11170" + xlink:href="#linearGradient11164" + inkscape:collect="always" /> + <radialGradient + gradientTransform="matrix(1.364252,-9.115392e-17,9.115392e-17,1.364252,-9.47947,-5.618016)" + gradientUnits="userSpaceOnUse" + r="18.672388" + fy="17.224812" + fx="24.673435" + cy="17.224812" + cx="24.673435" + id="radialGradient11234" + xlink:href="#linearGradient11178" + inkscape:collect="always" /> + <radialGradient + gradientUnits="userSpaceOnUse" + r="18.214285" + fy="23.071428" + fx="25.785715" + cy="23.071428" + cx="25.785715" + id="radialGradient11270" + xlink:href="#linearGradient11264" + inkscape:collect="always" /> + <linearGradient + gradientUnits="userSpaceOnUse" + y2="8.5882788" + x2="25.785715" + y1="21.978363" + x1="25.785715" + id="linearGradient4755" + xlink:href="#linearGradient4749" + inkscape:collect="always" /> + </defs> + <sodipodi:namedview + inkscape:window-y="423" + inkscape:window-x="840" + inkscape:window-height="606" + inkscape:window-width="750" + stroke="#555753" + fill="#edd400" + inkscape:showpageshadow="false" + inkscape:document-units="px" + inkscape:grid-bbox="true" + showgrid="false" + inkscape:current-layer="layer1" + inkscape:cy="-10.815272" + inkscape:cx="85.353158" + inkscape:zoom="1" + inkscape:pageshadow="2" + inkscape:pageopacity="0.0" + borderopacity="0.32941176" + bordercolor="#666666" + pagecolor="#ffffff" + id="base" + showguides="true" + inkscape:guide-bbox="true" /> + <metadata + id="metadata4"> + <rdf:RDF> + <cc:Work + rdf:about=""> + <dc:format>image/svg+xml</dc:format> + <dc:type + rdf:resource="http://purl.org/dc/dcmitype/StillImage" /> + <dc:title>Shutdown</dc:title> + <dc:creator> + <cc:Agent> + <dc:title>Jakub Steiner</dc:title> + </cc:Agent> + </dc:creator> + <cc:license + rdf:resource="http://creativecommons.org/licenses/GPL/2.0/" /> + <dc:source>http://jimmac.musichall.cz</dc:source> + <dc:subject> + <rdf:Bag> + <rdf:li>lock</rdf:li> + <rdf:li>key</rdf:li> + <rdf:li>secure</rdf:li> + </rdf:Bag> + </dc:subject> + </cc:Work> + <cc:License + rdf:about="http://creativecommons.org/licenses/GPL/2.0/"> + <cc:permits + rdf:resource="http://web.resource.org/cc/Reproduction" /> + <cc:permits + rdf:resource="http://web.resource.org/cc/Distribution" /> + <cc:requires + rdf:resource="http://web.resource.org/cc/Notice" /> + <cc:permits + rdf:resource="http://web.resource.org/cc/DerivativeWorks" /> + <cc:requires + rdf:resource="http://web.resource.org/cc/ShareAlike" /> + <cc:requires + rdf:resource="http://web.resource.org/cc/SourceCode" /> + </cc:License> + </rdf:RDF> + </metadata> + <g + inkscape:groupmode="layer" + inkscape:label="Layer 1" + id="layer1"> + <path + sodipodi:type="arc" + style="opacity:1;color:#000000;fill:url(#radialGradient11270);fill-opacity:1;fill-rule:evenodd;stroke:none;stroke-width:0.8505457;stroke-linecap:round;stroke-linejoin:round;marker:none;marker-start:none;marker-mid:none;marker-end:none;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1;visibility:visible;display:inline;overflow:visible" + id="path11262" + sodipodi:cx="25.785715" + sodipodi:cy="23.071428" + sodipodi:rx="18.214285" + sodipodi:ry="18.214285" + d="M 44 23.071428 A 18.214285 18.214285 0 1 1 7.5714302,23.071428 A 18.214285 18.214285 0 1 1 44 23.071428 z" + transform="matrix(1.269833,0,0,1.269833,-9.24356,-4.225444)" /> + <path + transform="matrix(1.175715,0,0,1.175715,-6.816669,-3.911156)" + d="M 44 23.071428 A 18.214285 18.214285 0 1 1 7.5714302,23.071428 A 18.214285 18.214285 0 1 1 44 23.071428 z" + sodipodi:ry="18.214285" + sodipodi:rx="18.214285" + sodipodi:cy="23.071428" + sodipodi:cx="25.785715" + id="path11152" + style="opacity:1;color:#000000;fill:url(#linearGradient11170);fill-opacity:1;fill-rule:evenodd;stroke:#74796e;stroke-width:0.8505457;stroke-linecap:round;stroke-linejoin:round;marker:none;marker-start:none;marker-mid:none;marker-end:none;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1;visibility:visible;display:inline;overflow:visible" + sodipodi:type="arc" /> + <path + sodipodi:type="arc" + style="opacity:1;color:#000000;fill:url(#radialGradient11234);fill-opacity:1;fill-rule:evenodd;stroke:none;stroke-width:0.93590021;stroke-linecap:round;stroke-linejoin:round;marker:none;marker-start:none;marker-mid:none;marker-end:none;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1;visibility:visible;display:inline;overflow:visible" + id="path11154" + sodipodi:cx="25.785715" + sodipodi:cy="23.071428" + sodipodi:rx="18.214285" + sodipodi:ry="18.214285" + d="M 44 23.071428 A 18.214285 18.214285 0 1 1 7.5714302,23.071428 A 18.214285 18.214285 0 1 1 44 23.071428 z" + transform="matrix(1.06849,0,0,1.06849,-4.051771,-2.437299)" /> + <path + sodipodi:nodetypes="czs" + id="path4743" + d="M 19.1468,14.674063 C 12.154448,18.486901 15.316371,29.412893 23.310313,29.412893 C 31.220984,29.412893 34.766419,19.054547 27.473824,14.674063" + style="opacity:1;color:#000000;fill:none;fill-opacity:1;fill-rule:evenodd;stroke:#555753;stroke-width:3;stroke-linecap:round;stroke-linejoin:miter;marker:none;marker-start:none;marker-mid:none;marker-end:none;stroke-miterlimit:10;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1;visibility:visible;display:inline;overflow:visible" /> + <path + id="path4745" + d="M 23.364832,19.364034 L 23.364832,11.95091" + style="opacity:1;color:#000000;fill:none;fill-opacity:1;fill-rule:evenodd;stroke:#555753;stroke-width:2.99999905;stroke-linecap:round;stroke-linejoin:miter;marker:none;marker-start:none;marker-mid:none;marker-end:none;stroke-miterlimit:10;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1;visibility:visible;display:inline;overflow:visible" /> + <path + transform="matrix(1.04555,0,0,1.04555,-3.460245,-1.908039)" + d="M 44 23.071428 A 18.214285 18.214285 0 1 1 7.5714302,23.071428 A 18.214285 18.214285 0 1 1 44 23.071428 z" + sodipodi:ry="18.214285" + sodipodi:rx="18.214285" + sodipodi:cy="23.071428" + sodipodi:cx="25.785715" + id="path4747" + style="opacity:0.88235294;color:#000000;fill:none;fill-opacity:1;fill-rule:evenodd;stroke:url(#linearGradient4755);stroke-width:0.95643449;stroke-linecap:round;stroke-linejoin:round;marker:none;marker-start:none;marker-mid:none;marker-end:none;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1;visibility:visible;display:inline;overflow:visible" + sodipodi:type="arc" /> + </g> +</svg> diff --git a/debian/changelog b/debian/changelog index 9966cc4..40268b7 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,3 +1,12 @@ +indicator-session (0.1.6-0ubuntu3~ppa3) UNRELEASED; urgency=low + + * Changing the icon so that if you are disconnected it is + 'system-shutdown-panel' and making sure that we see it + sometimes by not allocating the EmpathyAccountManager isn't + allocated until status is set. (LP: #432635) + + -- Ted Gould <ted@ubuntu.com> Thu, 08 Oct 2009 10:53:40 -0400 + indicator-session (0.1.6-0ubuntu3~ppa2) karmic; urgency=low * Handling the locking of the screensaver so that we ensure diff --git a/src/indicator-session.c b/src/indicator-session.c index c367e3a..c22aa1c 100644 --- a/src/indicator-session.c +++ b/src/indicator-session.c @@ -76,8 +76,8 @@ get_label (void) GtkImage * get_icon (void) { - g_debug("Changing status icon: '%s'", "user-offline"); - status_image = GTK_IMAGE(gtk_image_new_from_icon_name("user-offline", GTK_ICON_SIZE_MENU)); + g_debug("Changing status icon: '%s'", "system-shutdown-panel"); + status_image = GTK_IMAGE(gtk_image_new_from_icon_name("system-shutdown-panel", GTK_ICON_SIZE_MENU)); gtk_widget_show(GTK_WIDGET(status_image)); return status_image; } diff --git a/src/status-provider-mc5.c b/src/status-provider-mc5.c index 813ce3e..671e459 100644 --- a/src/status-provider-mc5.c +++ b/src/status-provider-mc5.c @@ -113,8 +113,8 @@ status_provider_mc5_init (StatusProviderMC5 *self) { StatusProviderMC5Private * priv = STATUS_PROVIDER_MC5_GET_PRIVATE(self); - priv->status = STATUS_PROVIDER_STATUS_OFFLINE; - priv->manager = EMPATHY_ACCOUNT_MANAGER(g_object_new(EMPATHY_TYPE_ACCOUNT_MANAGER, NULL)); + priv->status = STATUS_PROVIDER_STATUS_DISCONNECTED; + priv->manager = NULL; g_signal_connect(G_OBJECT(priv->manager), "global-presence-changed", G_CALLBACK(presence_changed), self); @@ -169,8 +169,7 @@ set_status (StatusProvider * sp, StatusProviderStatus status) { StatusProviderMC5Private * priv = STATUS_PROVIDER_MC5_GET_PRIVATE(sp); if (priv->manager == NULL) { - priv->status = STATUS_PROVIDER_STATUS_DISCONNECTED; - return; + priv->manager = EMPATHY_ACCOUNT_MANAGER(g_object_new(EMPATHY_TYPE_ACCOUNT_MANAGER, NULL)); } empathy_account_manager_request_global_presence(priv->manager, sp_to_tp_map[status], sp_to_mc_map[status], ""); diff --git a/src/status-service.c b/src/status-service.c index a448ada..e3a9684 100644 --- a/src/status-service.c +++ b/src/status-service.c @@ -68,7 +68,7 @@ static const gchar * status_icons[STATUS_PROVIDER_STATUS_LAST] = { /* STATUS_PROVIDER_STATUS_DND, */ "user-busy", /* STATUS_PROVIDER_STATUS_INVISIBLE, */ "user-invisible", /* STATUS_PROVIDER_STATUS_OFFLINE */ "user-offline", - /* STATUS_PROVIDER_STATUS_DISCONNECTED */"user-offline" + /* STATUS_PROVIDER_STATUS_DISCONNECTED */"system-shutdown-panel" }; |