Change the raw data in the identify results window from a label to a textbox.

This commit is contained in:
Julian Frohmüller
2024-02-18 16:17:59 +01:00
parent 85fab336d5
commit d389ea8159
2 changed files with 6 additions and 5 deletions
+3 -2
View File
@@ -3021,7 +3021,7 @@ void display_identify_data_ccc(void)
GtkWidget *identify_udma_selected_6_checkbox = GTK_WIDGET(gtk_builder_get_object(builder, "identify_udma_selected_6_checkbox"));
GtkWidget *identify_raw_buffer_label = GTK_WIDGET(gtk_builder_get_object(builder, "identify_raw_buffer_label"));
GtkWidget *identify_results_data_label = GTK_WIDGET(gtk_builder_get_object(builder, "identify_results_data_label"));
GtkWidget *identify_raw_data_textbox = GTK_WIDGET(gtk_builder_get_object(builder, "identify_raw_data_textbox"));
g_object_unref(builder);
@@ -3098,7 +3098,8 @@ void display_identify_data_ccc(void)
gtk_toggle_button_set_active(GTK_TOGGLE_BUTTON(identify_udma_selected_6_checkbox), identify_device_data_ccc.udma_mode_6_selected);
gtk_label_set_text(GTK_LABEL(identify_raw_buffer_label), _("Raw Data"));
gtk_label_set_text(GTK_LABEL(identify_results_data_label), identify_device_raw_text_ccc);
gtk_text_buffer_set_text(gtk_text_view_get_buffer(GTK_TEXT_VIEW(identify_raw_data_textbox)), identify_device_raw_text_ccc, -1);
gtk_window_set_title(GTK_WINDOW(dialog), _("Identify Results"));
gtk_dialog_run(GTK_DIALOG(dialog));
+3 -3
View File
@@ -6935,10 +6935,10 @@ no data</property>
<property name="can-focus">False</property>
<property name="left-padding">12</property>
<child>
<object class="GtkLabel" id="identify_results_data_label">
<object class="GtkTextView" id="identify_raw_data_textbox">
<property name="visible">True</property>
<property name="can-focus">False</property>
<property name="label" translatable="yes">identify results</property>
<property name="can-focus">True</property>
<property name="editable">False</property>
</object>
</child>
</object>