[gimp/gtk3-port] app: remove the "Mode" scrolldown from "Input Devices" dialog.
- From: Jehan Pagès <jehanp src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gimp/gtk3-port] app: remove the "Mode" scrolldown from "Input Devices" dialog.
- Date: Mon, 14 May 2018 22:34:22 +0000 (UTC)
commit 6810fd80cb507feaf7667dce5b20c55ca252a61e
Author: Jehan <jehan girinstud io>
Date: Mon May 14 23:28:23 2018 +0200
app: remove the "Mode" scrolldown from "Input Devices" dialog.
This is just clearly useless as GDK docs states, and since all tablets
just work out of the box, even when set as "disabled".
I am actually pondering if the "mode" property from GimpDeviceInfo
should not just be removed altogether, but I'll want to check a little
more existing code first.
app/widgets/gimpdeviceinfoeditor.c | 20 --------------------
1 files changed, 0 insertions(+), 20 deletions(-)
---
diff --git a/app/widgets/gimpdeviceinfoeditor.c b/app/widgets/gimpdeviceinfoeditor.c
index 943dfc9..113a940 100644
--- a/app/widgets/gimpdeviceinfoeditor.c
+++ b/app/widgets/gimpdeviceinfoeditor.c
@@ -333,8 +333,6 @@ gimp_device_info_editor_constructed (GObject *object)
GimpDeviceInfoEditor *editor = GIMP_DEVICE_INFO_EDITOR (object);
GimpDeviceInfoEditorPrivate *private;
GtkWidget *hbox;
- GtkWidget *label;
- GtkWidget *combo;
gint n_axes;
gint n_keys;
gint i;
@@ -345,24 +343,6 @@ gimp_device_info_editor_constructed (GObject *object)
gimp_assert (GIMP_IS_DEVICE_INFO (private->info));
- /* the mode menu */
-
- hbox = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 6);
- gtk_box_pack_start (GTK_BOX (private->vbox), hbox, FALSE, FALSE, 0);
- gtk_box_reorder_child (GTK_BOX (private->vbox), hbox, 0);
- gtk_widget_show (hbox);
-
- label = gtk_label_new_with_mnemonic (_("_Mode:"));
- gtk_box_pack_start (GTK_BOX (hbox), label, FALSE, FALSE, 0);
- gtk_widget_show (label);
-
- combo = gimp_prop_enum_combo_box_new (G_OBJECT (private->info), "mode",
- 0, 0);
- gtk_box_pack_start (GTK_BOX (hbox), combo, FALSE, FALSE, 0);
- gtk_widget_show (combo);
-
- gtk_label_set_mnemonic_widget (GTK_LABEL (label), combo);
-
/* the axes */
n_axes = gimp_device_info_get_n_axes (private->info);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]