inspector: Use symbolic icon everywhere

https://bugzilla.gnome.org/show_bug.cgi?id=730465
This commit is contained in:
Yosef Or Boczko 2014-05-20 19:33:19 +03:00 committed by Matthias Clasen
parent 83d43d0cfe
commit 65c9e2a651
6 changed files with 10 additions and 6 deletions

View File

@ -16,7 +16,7 @@
<child>
<object class="GtkToolButton">
<property name="visible">True</property>
<property name="icon-name">list-add</property>
<property name="icon-name">list-add-symbolic</property>
<property name="tooltip-text" translatable="yes">Add a class</property>
<signal name="clicked" handler="add_clicked"/>
</object>

View File

@ -25,7 +25,7 @@
<child>
<object class="GtkToggleToolButton" id="disable_button">
<property name="visible">True</property>
<property name="icon-name">media-playback-pause</property>
<property name="icon-name">media-playback-pause-symbolic</property>
<property name="tooltip-text" translatable="yes">Disable this custom CSS</property>
<signal name="toggled" handler="disable_toggled"/>
</object>

View File

@ -9,7 +9,7 @@
<child>
<object class="GtkToggleToolButton" id="show_button">
<property name="visible">True</property>
<property name="icon-name">reload</property>
<property name="icon-name">view-refresh-symbolic</property>
<property name="tooltip-text" translatable="yes">Show data</property>
<signal name="toggled" handler="toggle_show"/>
</object>

View File

@ -37,6 +37,7 @@ struct _GtkInspectorSignalsListPrivate
GtkTextBuffer *text;
GtkWidget *log_win;
GtkWidget *trace_button;
GtkWidget *clear_button;
GtkTreeViewColumn *count_column;
GtkCellRenderer *count_renderer;
GObject *object;
@ -177,6 +178,9 @@ gtk_inspector_signals_list_init (GtkInspectorSignalsList *sl)
sl->priv = gtk_inspector_signals_list_get_instance_private (sl);
gtk_widget_init_template (GTK_WIDGET (sl));
gtk_tool_button_set_icon_name (GTK_TOOL_BUTTON (sl->priv->clear_button),
gtk_widget_get_direction (GTK_WIDGET (sl)) == GTK_TEXT_DIR_RTL ? "edit-clear-rtl-symbolic" : "edit-clear-symbolic");
gtk_tree_view_column_set_cell_data_func (sl->priv->count_column,
sl->priv->count_renderer,
render_count,
@ -333,6 +337,7 @@ gtk_inspector_signals_list_class_init (GtkInspectorSignalsListClass *klass)
gtk_widget_class_bind_template_child_private (widget_class, GtkInspectorSignalsList, count_column);
gtk_widget_class_bind_template_child_private (widget_class, GtkInspectorSignalsList, count_renderer);
gtk_widget_class_bind_template_child_private (widget_class, GtkInspectorSignalsList, trace_button);
gtk_widget_class_bind_template_child_private (widget_class, GtkInspectorSignalsList, clear_button);
gtk_widget_class_bind_template_callback (widget_class, toggle_tracing);
gtk_widget_class_bind_template_callback (widget_class, clear_log);
}

View File

@ -26,7 +26,7 @@
<child>
<object class="GtkToggleToolButton" id="trace_button">
<property name="visible">True</property>
<property name="icon-name">media-record</property>
<property name="icon-name">media-record-symbolic</property>
<property name="tooltip-text" translatable="yes">Trace signal emissions on this object</property>
<signal name="toggled" handler="toggle_tracing"/>
</object>
@ -34,7 +34,6 @@
<child>
<object class="GtkToolButton" id="clear_button">
<property name="visible">True</property>
<property name="icon-name">edit-clear</property>
<property name="tooltip-text" translatable="yes">Clear log</property>
<signal name="clicked" handler="clear_log"/>
</object>

View File

@ -2,7 +2,7 @@
<interface domain="gtk30">
<object class="GtkImage" id="inspect_image">
<property name="visible">True</property>
<property name="icon-name">edit-find</property>
<property name="icon-name">edit-find-symbolic</property>
<property name="icon-size">4</property>
</object>
<object class="GtkMenu" id="widget_popup">