mirror of
https://github.com/raphnet/gc_n64_usb-v3
synced 2024-12-22 07:18:52 -05:00
Gui tooltips
This commit is contained in:
parent
9d2981cdb0
commit
d4097afde4
@ -294,7 +294,6 @@
|
||||
<property name="visible">True</property>
|
||||
<property name="can_focus">False</property>
|
||||
<property name="hexpand">True</property>
|
||||
<property name="angle">0.059999998658895493</property>
|
||||
</object>
|
||||
<packing>
|
||||
<property name="left_attach">1</property>
|
||||
@ -321,6 +320,30 @@
|
||||
<property name="top_attach">2</property>
|
||||
</packing>
|
||||
</child>
|
||||
<child>
|
||||
<object class="GtkLabel" id="label9">
|
||||
<property name="visible">True</property>
|
||||
<property name="can_focus">False</property>
|
||||
<property name="halign">end</property>
|
||||
<property name="label" translatable="yes">Path:</property>
|
||||
<property name="justify">right</property>
|
||||
<property name="ellipsize">end</property>
|
||||
</object>
|
||||
<packing>
|
||||
<property name="left_attach">0</property>
|
||||
<property name="top_attach">3</property>
|
||||
</packing>
|
||||
</child>
|
||||
<child>
|
||||
<object class="GtkLabel" id="label_device_path">
|
||||
<property name="visible">True</property>
|
||||
<property name="can_focus">False</property>
|
||||
</object>
|
||||
<packing>
|
||||
<property name="left_attach">1</property>
|
||||
<property name="top_attach">3</property>
|
||||
</packing>
|
||||
</child>
|
||||
</object>
|
||||
</child>
|
||||
</object>
|
||||
@ -427,6 +450,7 @@
|
||||
<property name="visible">True</property>
|
||||
<property name="can_focus">True</property>
|
||||
<property name="receives_default">False</property>
|
||||
<property name="tooltip_text" translatable="yes">If set, trigger value decreases when pushed</property>
|
||||
<property name="xalign">0</property>
|
||||
<property name="yalign">0.40999999642372131</property>
|
||||
<property name="draw_indicator">True</property>
|
||||
@ -446,6 +470,7 @@
|
||||
<object class="GtkLabel" id="label4">
|
||||
<property name="visible">True</property>
|
||||
<property name="can_focus">False</property>
|
||||
<property name="tooltip_text" translatable="yes">Controls the N64 or Gamecube controller polling rate. Default: 5ms</property>
|
||||
<property name="xpad">5</property>
|
||||
<property name="label" translatable="yes">Poll interval (ms):</property>
|
||||
</object>
|
||||
@ -523,6 +548,7 @@
|
||||
<property name="visible">True</property>
|
||||
<property name="can_focus">True</property>
|
||||
<property name="receives_default">True</property>
|
||||
<property name="tooltip_text" translatable="yes">Suspends the GC/N64 controller polling. (i.e. The controller stops responding)</property>
|
||||
<property name="xalign">0.46000000834465027</property>
|
||||
<signal name="clicked" handler="suspend_polling" swapped="no"/>
|
||||
</object>
|
||||
@ -538,6 +564,7 @@
|
||||
<property name="visible">True</property>
|
||||
<property name="can_focus">True</property>
|
||||
<property name="receives_default">True</property>
|
||||
<property name="tooltip_text" translatable="yes">Resumes the GC/N64 controller polling. (i.e. The controller starts responding again)</property>
|
||||
<signal name="clicked" handler="resume_polling" swapped="no"/>
|
||||
</object>
|
||||
<packing>
|
||||
|
@ -31,6 +31,7 @@ static void updateGuiFromAdapter(struct application *app, struct gcn64_info *inf
|
||||
GET_UI_ELEMENT(GtkLabel, label_product_name);
|
||||
GET_UI_ELEMENT(GtkLabel, label_firmware_version);
|
||||
GET_UI_ELEMENT(GtkLabel, label_usb_id);
|
||||
GET_UI_ELEMENT(GtkLabel, label_device_path);
|
||||
int i;
|
||||
|
||||
GtkSpinButton *pollInterval0 = GTK_SPIN_BUTTON( gtk_builder_get_object(app->builder, "pollInterval0") );
|
||||
@ -54,6 +55,10 @@ static void updateGuiFromAdapter(struct application *app, struct gcn64_info *inf
|
||||
|
||||
}
|
||||
|
||||
snprintf((char*)buf, sizeof(buf), "%04x:%04x", info->usb_vid, info->usb_pid);
|
||||
gtk_label_set_text(label_usb_id, (char*)buf);
|
||||
|
||||
gtk_label_set_text(label_device_path, info->str_path);
|
||||
}
|
||||
|
||||
G_MODULE_EXPORT void pollIntervalChanged(GtkWidget *win, gpointer data)
|
||||
|
Loading…
Reference in New Issue
Block a user