aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/empathy-call-window-fullscreen.ui2
-rw-r--r--src/empathy-call-window.c3
-rw-r--r--src/empathy-map-view.c20
3 files changed, 18 insertions, 7 deletions
diff --git a/src/empathy-call-window-fullscreen.ui b/src/empathy-call-window-fullscreen.ui
index 5bf5e509b..4e864bce6 100644
--- a/src/empathy-call-window-fullscreen.ui
+++ b/src/empathy-call-window-fullscreen.ui
@@ -12,7 +12,7 @@
<signal name="motion_notify_event" handler="empathy_call_window_fullscreen_motion_notify_cb"/>
<child>
<object class="GtkButton" id="leave_fullscreen_button">
- <property name="label" translatable="yes">gtk-leave-fullscreen</property>
+ <property name="label">gtk-leave-fullscreen</property>
<property name="visible">True</property>
<property name="can_focus">True</property>
<property name="receives_default">True</property>
diff --git a/src/empathy-call-window.c b/src/empathy-call-window.c
index e8266591e..f7ba24232 100644
--- a/src/empathy-call-window.c
+++ b/src/empathy-call-window.c
@@ -863,6 +863,8 @@ set_window_title (EmpathyCallWindow *self)
EmpathyCallWindowPriv *priv = GET_PRIV (self);
gchar *tmp;
+ /* translators: Call is a noun and %s is the contact name. This string is used
+ * in the window title */
tmp = g_strdup_printf (_("Call with %s"),
empathy_contact_get_name (priv->contact));
gtk_window_set_title (GTK_WINDOW (self), tmp);
@@ -932,6 +934,7 @@ empathy_call_window_setup_avatars (EmpathyCallWindow *self,
else
{
g_warning ("call handler doesn't have a contact");
+ /* translators: Call is a noun. This string is used in the window title */
gtk_window_set_title (GTK_WINDOW (self), _("Call"));
/* Since we can't access the remote contact, we can't get a connection
diff --git a/src/empathy-map-view.c b/src/empathy-map-view.c
index e4800adc1..8df13922a 100644
--- a/src/empathy-map-view.c
+++ b/src/empathy-map-view.c
@@ -83,7 +83,7 @@ map_view_marker_update_position (ChamplainMarker *marker,
if (location == NULL ||
g_hash_table_size (location) == 0)
{
- clutter_actor_hide (CLUTTER_ACTOR (marker));
+ champlain_base_marker_animate_out (CHAMPLAIN_BASE_MARKER (marker));
return;
}
@@ -103,8 +103,8 @@ map_view_marker_update_position (ChamplainMarker *marker,
}
lon = g_value_get_double (value);
- clutter_actor_show (CLUTTER_ACTOR (marker));
champlain_base_marker_set_position (CHAMPLAIN_BASE_MARKER (marker), lat, lon);
+ champlain_base_marker_animate_in (CHAMPLAIN_BASE_MARKER (marker));
}
static void
@@ -171,7 +171,7 @@ map_view_contacts_foreach (GtkTreeModel *model,
gchar *date;
gchar *label;
GValue *gtime;
- time_t time;
+ time_t loctime;
gtk_tree_model_get (model, iter, EMPATHY_CONTACT_LIST_STORE_COL_CONTACT,
&contact, -1);
@@ -181,7 +181,7 @@ map_view_contacts_foreach (GtkTreeModel *model,
location = empathy_contact_get_location (contact);
- if (location == NULL)
+ if (location == NULL || g_hash_table_size (location) == 0)
return FALSE;
marker = champlain_marker_new ();
@@ -202,10 +202,18 @@ map_view_contacts_foreach (GtkTreeModel *model,
gtime = g_hash_table_lookup (location, EMPATHY_LOCATION_TIMESTAMP);
if (gtime != NULL)
{
- time = g_value_get_int64 (gtime);
- date = empathy_time_to_string_relative (time);
+ time_t now;
+
+ loctime = g_value_get_int64 (gtime);
+ date = empathy_time_to_string_relative (loctime);
label = g_strconcat ("<b>", name, "</b>\n<small>", date, "</small>", NULL);
g_free (date);
+
+ now = time (NULL);
+
+ /* if location is older than a week */
+ if (now - loctime > (60 * 60 * 24 * 7))
+ clutter_actor_set_opacity (CLUTTER_ACTOR (marker), 0.75 * 255);
}
else
{