[totem] grilo: Remove unused "New" button
- From: Bastien Nocera <hadess src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [totem] grilo: Remove unused "New" button
- Date: Fri, 17 Jan 2014 09:10:46 +0000 (UTC)
commit 598b75549cc47726599136f699d32a070dbd58bf
Author: Bastien Nocera <hadess hadess net>
Date: Tue Jan 14 21:20:24 2014 +0100
grilo: Remove unused "New" button
src/plugins/grilo/totem-main-toolbar.c | 30 ------------------------------
src/plugins/grilo/totemmaintoolbar.ui | 20 --------------------
2 files changed, 0 insertions(+), 50 deletions(-)
---
diff --git a/src/plugins/grilo/totem-main-toolbar.c b/src/plugins/grilo/totem-main-toolbar.c
index b8317d6..63e338f 100644
--- a/src/plugins/grilo/totem-main-toolbar.c
+++ b/src/plugins/grilo/totem-main-toolbar.c
@@ -54,7 +54,6 @@ struct _TotemMainToolbarPrivate {
GtkWidget *done_button;
GtkWidget *back_button;
GtkWidget *back_button_image;
- GtkWidget *new_button;
GtkWidget *stack;
/* Visibility */
@@ -98,7 +97,6 @@ enum {
PROP_SELECT_MODE_AVAILABLE,
PROP_SHOW_SELECT_BUTTON,
PROP_SHOW_BACK_BUTTON,
- PROP_SHOW_NEW_BUTTON,
PROP_CUSTOM_TITLE,
PROP_SELECT_MENU_MODEL
};
@@ -201,13 +199,6 @@ back_button_clicked_cb (GtkButton *button,
}
static void
-new_button_clicked_cb (GtkButton *button,
- TotemMainToolbar *bar)
-{
- g_signal_emit_by_name (G_OBJECT (bar), "new-clicked", NULL);
-}
-
-static void
totem_main_toolbar_set_property (GObject *object,
guint prop_id,
const GValue *value,
@@ -248,10 +239,6 @@ totem_main_toolbar_set_property (GObject *object,
gtk_widget_set_visible (priv->back_button, g_value_get_boolean (value));
break;
- case PROP_SHOW_NEW_BUTTON:
- gtk_widget_set_visible (priv->new_button, g_value_get_boolean (value));
- break;
-
case PROP_CUSTOM_TITLE:
totem_main_toolbar_set_custom_title (bar, g_value_get_object (value));
break;
@@ -305,10 +292,6 @@ totem_main_toolbar_get_property (GObject *object,
g_value_set_boolean (value, gtk_widget_get_visible (priv->back_button));
break;
- case PROP_SHOW_NEW_BUTTON:
- g_value_set_boolean (value, gtk_widget_get_visible (priv->new_button));
- break;
-
case PROP_CUSTOM_TITLE:
g_value_set_object (value, priv->custom_title);
break;
@@ -439,14 +422,6 @@ totem_main_toolbar_class_init (TotemMainToolbarClass *klass)
G_PARAM_READWRITE | G_PARAM_CONSTRUCT));
g_object_class_install_property (object_class,
- PROP_SHOW_NEW_BUTTON,
- g_param_spec_boolean ("show-new-button",
- "Show New Button",
- "Whether the new button is visible",
- FALSE,
- G_PARAM_READWRITE | G_PARAM_CONSTRUCT));
-
- g_object_class_install_property (object_class,
PROP_CUSTOM_TITLE,
g_param_spec_object ("custom-title",
"Custom Title",
@@ -486,7 +461,6 @@ totem_main_toolbar_class_init (TotemMainToolbarClass *klass)
gtk_widget_class_bind_template_child_private (widget_class, TotemMainToolbar, done_button);
gtk_widget_class_bind_template_child_private (widget_class, TotemMainToolbar, back_button);
gtk_widget_class_bind_template_child_private (widget_class, TotemMainToolbar, back_button_image);
- gtk_widget_class_bind_template_child_private (widget_class, TotemMainToolbar, new_button);
gtk_widget_class_bind_template_child_private (widget_class, TotemMainToolbar, stack);
}
@@ -551,10 +525,6 @@ totem_main_toolbar_init (TotemMainToolbar *bar)
g_signal_connect (G_OBJECT (bar->priv->back_button), "clicked",
G_CALLBACK (back_button_clicked_cb), bar);
- /* New button */
- g_signal_connect (G_OBJECT (bar->priv->new_button), "clicked",
- G_CALLBACK (new_button_clicked_cb), bar);
-
/* Titles */
title_widget = create_title_box ("", "", &bar->priv->title_label, &bar->priv->subtitle_label);
gtk_stack_add_named (GTK_STACK (bar->priv->stack), title_widget, DEFAULT_PAGE);
diff --git a/src/plugins/grilo/totemmaintoolbar.ui b/src/plugins/grilo/totemmaintoolbar.ui
index 5c4f2ed..83dd058 100644
--- a/src/plugins/grilo/totemmaintoolbar.ui
+++ b/src/plugins/grilo/totemmaintoolbar.ui
@@ -39,26 +39,6 @@
</packing>
</child>
<child>
- <object class="GtkButton" id="new_button">
- <property name="visible">True</property>
- <property name="can_focus">True</property>
- <property name="receives_default">True</property>
- <property name="no-show-all">True</property>
- <property name="label" translatable="yes" context="Item">New</property>
- <child internal-child="accessible">
- <object class="AtkObject" id="new-button-atkobject">
- <property name="AtkObject::accessible-name" translatable="yes">New</property>
- </object>
- </child>
- <style>
- <class name="text-button"/>
- </style>
- </object>
- <packing>
- <property name="pack_type">start</property>
- </packing>
- </child>
- <child>
<object class="GtkToggleButton" id="search_button">
<property name="visible">True</property>
<property name="can_focus">True</property>
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]