[gimp/gtk3-port: 259/336] app: get rid of GtkArrow in GimpColorDialog
- From: Michael Natterer <mitch src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gimp/gtk3-port: 259/336] app: get rid of GtkArrow in GimpColorDialog
- Date: Fri, 4 May 2018 10:10:09 +0000 (UTC)
commit 3ec9b169f7ca6e0f1235c35c8ff5a89fd45636e0
Author: Michael Natterer <mitch gimp org>
Date: Sun Apr 29 18:23:38 2018 +0200
app: get rid of GtkArrow in GimpColorDialog
app/widgets/gimpcolordialog.c | 8 ++------
1 files changed, 2 insertions(+), 6 deletions(-)
---
diff --git a/app/widgets/gimpcolordialog.c b/app/widgets/gimpcolordialog.c
index 7f10c45..855003f 100644
--- a/app/widgets/gimpcolordialog.c
+++ b/app/widgets/gimpcolordialog.c
@@ -39,6 +39,7 @@
#include "gimpcolorhistory.h"
#include "gimpdialogfactory.h"
#include "gimphelp-ids.h"
+#include "gimpwidgets-constructors.h"
#include "gimpwidgets-utils.h"
#include "gimp-intl.h"
@@ -139,7 +140,6 @@ gimp_color_dialog_constructed (GObject *object)
GtkWidget *hbox;
GtkWidget *history;
GtkWidget *button;
- GtkWidget *arrow;
G_OBJECT_CLASS (parent_class)->constructed (object);
@@ -150,7 +150,7 @@ gimp_color_dialog_constructed (GObject *object)
gtk_widget_show (hbox);
/* Button for adding to color history. */
- button = gtk_button_new ();
+ button = gimp_icon_button_new (GIMP_ICON_LIST_ADD, NULL);
gtk_box_pack_start (GTK_BOX (hbox), GTK_WIDGET (button), FALSE, FALSE, 0);
gimp_help_set_help_data (button,
_("Add the current color to the color history"),
@@ -161,10 +161,6 @@ gimp_color_dialog_constructed (GObject *object)
G_CALLBACK (gimp_color_history_add_clicked),
dialog);
- arrow = gtk_arrow_new (GTK_ARROW_RIGHT, GTK_SHADOW_OUT);
- gtk_container_add (GTK_CONTAINER (button), arrow);
- gtk_widget_show (arrow);
-
/* Color history table. */
history = gimp_color_history_new (viewable_dialog->context, 12);
gtk_box_pack_start (GTK_BOX (hbox), GTK_WIDGET (history), TRUE, TRUE, 0);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]