Commit c95f0306 authored by Christian Hergert's avatar Christian Hergert
Browse files

omnibar: remove "Build: " prefix for messages

We don't really need this anymore, and it just wastes space. We should
instead make our build messages very clear as they come from the
particular build stages/phases.
parent 134abddb
......@@ -153,25 +153,6 @@ date_time_to_label (GBinding *binding,
return TRUE;
}
static gboolean
message_to_label (GBinding *binding,
const GValue *from_value,
GValue *to_value,
gpointer user_data)
{
g_assert (G_IS_BINDING (binding));
g_assert (from_value != NULL);
g_assert (G_VALUE_HOLDS (from_value, G_TYPE_STRING));
g_assert (to_value != NULL);
g_assert (G_VALUE_HOLDS (to_value, G_TYPE_STRING));
g_value_take_string (to_value,
/* translators: this message is shown in the header bar to indicate build status */
g_strdup_printf (_("Build: %s"), g_value_get_string (from_value)));
return TRUE;
}
static gboolean
file_to_relative_path (GBinding *binding,
const GValue *from_value,
......@@ -700,13 +681,9 @@ ide_omni_bar_init (IdeOmniBar *self)
NULL,
NULL);
egg_binding_group_bind_full (self->build_manager_bindings,
"message",
self->build_result_mode_label,
"label",
G_BINDING_SYNC_CREATE,
message_to_label,
NULL, NULL, NULL);
egg_binding_group_bind (self->build_manager_bindings, "message",
self->build_result_mode_label, "label",
G_BINDING_SYNC_CREATE);
egg_binding_group_bind (self->build_manager_bindings,
"message",
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment