From 0633489db60773e6e61914d978d9f64bae0fbf13 Mon Sep 17 00:00:00 2001 From: Jim Evins Date: Tue, 20 Apr 2010 17:09:35 -0400 Subject: [PATCH] Added decorations to "new label" dialog Added new images to decorate each page of the "new label" dialog/wizard. --- data/pixmaps/Makefile.am | 3 + data/pixmaps/new-confirm.png | Bin 0 -> 4152 bytes data/pixmaps/new-rotate.png | Bin 0 -> 2790 bytes data/pixmaps/new-select.png | Bin 0 -> 9231 bytes src/new-label-dialog.c | 148 ++++++++++++++++++----------------- 5 files changed, 81 insertions(+), 70 deletions(-) create mode 100644 data/pixmaps/new-confirm.png create mode 100644 data/pixmaps/new-rotate.png create mode 100644 data/pixmaps/new-select.png diff --git a/data/pixmaps/Makefile.am b/data/pixmaps/Makefile.am index 1e370f45..2cc5495c 100644 --- a/data/pixmaps/Makefile.am +++ b/data/pixmaps/Makefile.am @@ -5,6 +5,9 @@ glabels_pixmapsdir = $(datadir)/$(GLABELS_BRANCH)/pixmaps glabels_pixmaps_DATA = \ glabels-splash.png \ glabels-about-logo.png \ + new-select.png \ + new-rotate.png \ + new-confirm.png \ ex-rect-size.png \ ex-round-size.png \ ex-cd-size.png \ diff --git a/data/pixmaps/new-confirm.png b/data/pixmaps/new-confirm.png new file mode 100644 index 0000000000000000000000000000000000000000..9361eb021e3eb6be3c7639cbdced7c0f6639b819 GIT binary patch literal 4152 zcmV-85XbL{P)Px#24YJ`L;(K){{a7>y{D4^000SaNLh0L01FWS01FWTe`H^g00007bV*G`2igP_ z6c;n}_8rXt01voHL_t(|+U=ZsbX3*7$3Oc_CX)aO39q1p5QvBbR05S%iVsX8*X3#} zqE@QCtSZW@YvrndLP={|LC`9+wATVY+WK1FTJKdJ6%9eCAc{gN1(NUxfdujnNoJDF zYwvykIA^yKq){1UclcSAmbib)7v27$By`f1ppoGt-onJvhCI5 zAH3RXZ6mEXnppd{p|XcunHOu%0#dENHS7W&_n&JrCd_&5oUgQJr3v#^t86UATPSO^97dOZg*E!Rwg7TCtp-o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q2&-xg4fx z0+2`~%1u!eVzJn$k)5I_XBCzl$HBJka=A|Au`YtJ7=k8>;wZRMsT7uF0T7SJNhA_z znuaXPqqL~-bCO<m- z%SEcHBFl0az*9q*APC6yS!_?jbVMx2!L@9JT%M9zKj!Bmur4CVLcl7+r6ft^HWnQ6 zC9T+=M9~o_IUX(!UZH>$pH>c^XZw5v)-oeh6&%(8d`A#1q+#y=i)dnluW#2 zhD0KPs;X1Yb46fH0*p#S8=fTNNh+>wVdH`0Al5dMNF+v;&zuTw1Xg5Ynl`N+Vwyi! z=$HtiizkRE>2{Q4@|^3kBCsac3Y^^er7Ap@I;{;+jw7lTF-lDiL34%a8-GQVgQ1lc^B86(yqG}qcmdxXFCYCN;imvMzhJmW8W9nF;L{X{ihXQP< z?4QHJiU_Pp2I~ayJz#dwrsMCrcP{%X2*Ap_@4ox=3m1!_>pGcCrd+5ume&g536H?2 z`M}C>8hNbhH4A@9)S)2M4>5Xw(DB?o5umfP^E6OGuo@d1$!4>pQmHXZUP8|lf>Svk zcqVOZ9Q_O*rs|VfrlNEdgg+gq!LJKH*R32y{C(r+ty!~X+Tz8F%WqT`1=iHmpzAt{ zqD;8g>FMcV*|KHemn6R#95>-_4PG^+$x{`q&>M&CT+4UG0MMuKms-uazz>% literal 0 HcmV?d00001 diff --git a/data/pixmaps/new-select.png b/data/pixmaps/new-select.png new file mode 100644 index 0000000000000000000000000000000000000000..e9e4a5b02ef076f6cee1e570bcf533ae1e0ffa0f GIT binary patch literal 9231 zcmX9^2RPO5+qbfJ)(=I6%m}4yvW}T~j6(Jb*-3b_hk4hL`(?(?kWV+z&BiX9c6i( z&jYM$@E<}8HDv{y3+&g2#)1TRg~V0G$Q=iV4BkpcgBxIF76&g9c_1_tiGC2!(F*b1 zA68Sx!C}WiD9Gvg{Mc-K?y7f?`uE~~!GUw(*bmhBt!vk)@i?ee2m>#fTAnapezE

i}HsW#fGlv!Aay#PB0EY-=;WMt!qa3Mu@yvsHkLc%i9!;k@I<|BK3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I9^2X~2a+4hT*)U4T2rva%QeT)oLvXZGz#rLezr z6;{8}`)wkD?Cc>8PQ)c^p3@RydPGxt^J(8^fi**I}`Sv^O3wHE@L=e<+m2%6sfh(e{nZx{flfkSt_*Ow{vf-Zl?PW0bcnST=4Oe|U3 z*sN4)&DY1FG5h;)4FU(RP00V#Z?|8uv$;O?@(ju)i&i^j`VZo2eYL~b|6SuG@gWUS z&KWx42L}hc^Py~DAbp@0=>k$Y5Pkjqw?#!2yuHOBnZe4{8SlB5#6hz6SmD=AU?(6m zGc-d@%aG?cLh3IWh%#G490Ae{5|g`W(Gc1YeD!~5VufqiYQ?hJsdspRGme||(89sL R1Abcv2cf8`@LAqG=zmJ?6CnTq literal 0 HcmV?d00001 diff --git a/src/new-label-dialog.c b/src/new-label-dialog.c index b6a92596..fb9894c5 100644 --- a/src/new-label-dialog.c +++ b/src/new-label-dialog.c @@ -50,20 +50,20 @@ struct _glNewLabelDialogPrivate { GtkBuilder *builder; - GtkWidget *template_page_vbox; + GtkWidget *template_page_vbox; GtkWidget *combo_hbox; GtkWidget *combo; - GtkWidget *rotate_page_vbox; + GtkWidget *rotate_page_vbox; GtkWidget *normal_radio; - GtkWidget *rotated_radio; + GtkWidget *rotated_radio; GtkWidget *normal_preview_hbox; - GtkWidget *rotated_preview_hbox; + GtkWidget *rotated_preview_hbox; GtkWidget *normal_preview; - GtkWidget *rotated_preview; + GtkWidget *rotated_preview; - GtkWidget *confirm_page_vbox; - GtkWidget *preview_vbox; + GtkWidget *confirm_page_vbox; + GtkWidget *preview_vbox; GtkWidget *preview; GtkWidget *desc_label; GtkWidget *page_size_label; @@ -128,13 +128,13 @@ G_DEFINE_TYPE (glNewLabelDialog, gl_new_label_dialog, GTK_TYPE_ASSISTANT); static void gl_new_label_dialog_class_init (glNewLabelDialogClass *class) { - GObjectClass *object_class = G_OBJECT_CLASS (class); + GObjectClass *object_class = G_OBJECT_CLASS (class); - gl_debug (DEBUG_FILE, ""); - - gl_new_label_dialog_parent_class = g_type_class_peek_parent (class); + gl_debug (DEBUG_FILE, ""); - object_class->finalize = gl_new_label_dialog_finalize; + gl_new_label_dialog_parent_class = g_type_class_peek_parent (class); + + object_class->finalize = gl_new_label_dialog_finalize; signals[COMPLETE] = g_signal_new ("complete", @@ -154,7 +154,7 @@ gl_new_label_dialog_class_init (glNewLabelDialogClass *class) static void gl_new_label_dialog_init (glNewLabelDialog *this) { - GtkWidget *vbox; + GtkWidget *vbox; gchar *logo_filename; GdkPixbuf *logo; GtkBuilder *builder; @@ -166,25 +166,21 @@ gl_new_label_dialog_init (glNewLabelDialog *this) GError *error = NULL; GtkWidget *new_label_dialog_hbox; - gl_debug (DEBUG_FILE, "START"); - - g_return_if_fail (GL_IS_NEW_LABEL_DIALOG (this)); + gl_debug (DEBUG_FILE, "START"); - this->priv = g_new0 (glNewLabelDialogPrivate, 1); + g_return_if_fail (GL_IS_NEW_LABEL_DIALOG (this)); - logo_filename = g_build_filename (GLABELS_ICON_DIR, GLABELS_ICON, NULL); - logo = gdk_pixbuf_new_from_file (logo_filename, NULL); - g_free (logo_filename); + this->priv = g_new0 (glNewLabelDialogPrivate, 1); builder = gtk_builder_new (); builder_filename = g_build_filename (GLABELS_DATA_DIR, "builder", "new-label-dialog.builder", NULL); gtk_builder_add_objects_from_file (builder, builder_filename, object_ids, &error); g_free (builder_filename); - if (error) { - g_critical ("%s\n\ngLabels may not be installed correctly!", error->message); + if (error) { + g_critical ("%s\n\ngLabels may not be installed correctly!", error->message); g_error_free (error); - return; - } + return; + } gl_builder_util_get_widgets (builder, "template_page_vbox", &this->priv->template_page_vbox, @@ -209,16 +205,24 @@ gl_new_label_dialog_init (glNewLabelDialog *this) gtk_assistant_append_page (GTK_ASSISTANT (this), this->priv->template_page_vbox); gtk_assistant_set_page_title (GTK_ASSISTANT (this), this->priv->template_page_vbox, _("Select Product")); - gtk_assistant_set_page_header_image (GTK_ASSISTANT (this), this->priv->template_page_vbox, logo); gtk_assistant_set_page_type (GTK_ASSISTANT (this), this->priv->template_page_vbox, GTK_ASSISTANT_PAGE_INTRO); + logo_filename = g_build_filename (GLABELS_DATA_DIR, "pixmaps", "new-select.png", NULL); + logo = gdk_pixbuf_new_from_file (logo_filename, NULL); + gtk_assistant_set_page_header_image (GTK_ASSISTANT (this), this->priv->template_page_vbox, logo); + g_free (logo_filename); + g_object_unref (logo); this->priv->combo = gl_media_select_new (); gtk_container_add (GTK_CONTAINER (this->priv->combo_hbox), this->priv->combo); gtk_assistant_append_page (GTK_ASSISTANT (this), this->priv->rotate_page_vbox); gtk_assistant_set_page_title (GTK_ASSISTANT (this), this->priv->rotate_page_vbox, _("Choose Orientation")); - gtk_assistant_set_page_header_image (GTK_ASSISTANT (this), this->priv->rotate_page_vbox, logo); gtk_assistant_set_page_complete (GTK_ASSISTANT (this), this->priv->rotate_page_vbox, TRUE); + logo_filename = g_build_filename (GLABELS_DATA_DIR, "pixmaps", "new-rotate.png", NULL); + logo = gdk_pixbuf_new_from_file (logo_filename, NULL); + gtk_assistant_set_page_header_image (GTK_ASSISTANT (this), this->priv->rotate_page_vbox, logo); + g_free (logo_filename); + g_object_unref (logo); this->priv->normal_preview = gl_mini_label_preview_new (LABEL_PREVIEW_WIDTH, LABEL_PREVIEW_HEIGHT); gtk_container_add (GTK_CONTAINER (this->priv->normal_preview_hbox), this->priv->normal_preview); @@ -227,9 +231,13 @@ gl_new_label_dialog_init (glNewLabelDialog *this) gtk_assistant_append_page (GTK_ASSISTANT (this), this->priv->confirm_page_vbox); gtk_assistant_set_page_title (GTK_ASSISTANT (this), this->priv->confirm_page_vbox, _("Review")); - gtk_assistant_set_page_header_image (GTK_ASSISTANT (this), this->priv->confirm_page_vbox, logo); gtk_assistant_set_page_type (GTK_ASSISTANT (this), this->priv->confirm_page_vbox, GTK_ASSISTANT_PAGE_CONFIRM); gtk_assistant_set_page_complete (GTK_ASSISTANT (this), this->priv->confirm_page_vbox, TRUE); + logo_filename = g_build_filename (GLABELS_DATA_DIR, "pixmaps", "new-confirm.png", NULL); + logo = gdk_pixbuf_new_from_file (logo_filename, NULL); + gtk_assistant_set_page_header_image (GTK_ASSISTANT (this), this->priv->confirm_page_vbox, logo); + g_free (logo_filename); + g_object_unref (logo); this->priv->preview = gl_mini_preview_new (MINI_PREVIEW_MIN_HEIGHT, MINI_PREVIEW_MIN_WIDTH); gl_mini_preview_set_draw_arrow (GL_MINI_PREVIEW (this->priv->preview), TRUE); @@ -238,17 +246,17 @@ gl_new_label_dialog_init (glNewLabelDialog *this) gtk_assistant_set_forward_page_func (GTK_ASSISTANT (this), (GtkAssistantPageFunc)forward_page_function, this, NULL); - g_signal_connect_swapped (G_OBJECT(this), "cancel", G_CALLBACK(cancel_cb), this); - g_signal_connect_swapped (G_OBJECT(this), "apply", G_CALLBACK(apply_cb), this); - g_signal_connect_swapped (G_OBJECT(this), "close", G_CALLBACK(close_cb), this); + g_signal_connect_swapped (G_OBJECT(this), "cancel", G_CALLBACK(cancel_cb), this); + g_signal_connect_swapped (G_OBJECT(this), "apply", G_CALLBACK(apply_cb), this); + g_signal_connect_swapped (G_OBJECT(this), "close", G_CALLBACK(close_cb), this); - g_signal_connect_swapped (G_OBJECT (this->priv->combo), "changed", G_CALLBACK (combo_changed_cb), this); - g_signal_connect_swapped (G_OBJECT (this->priv->normal_radio), "toggled", G_CALLBACK (rotate_toggled_cb), this); - g_signal_connect_swapped (G_OBJECT (this->priv->rotated_radio), "toggled", G_CALLBACK (rotate_toggled_cb), this); + g_signal_connect_swapped (G_OBJECT (this->priv->combo), "changed", G_CALLBACK (combo_changed_cb), this); + g_signal_connect_swapped (G_OBJECT (this->priv->normal_radio), "toggled", G_CALLBACK (rotate_toggled_cb), this); + g_signal_connect_swapped (G_OBJECT (this->priv->rotated_radio), "toggled", G_CALLBACK (rotate_toggled_cb), this); combo_changed_cb (this); - gl_debug (DEBUG_FILE, "END"); + gl_debug (DEBUG_FILE, "END"); } @@ -258,20 +266,20 @@ gl_new_label_dialog_init (glNewLabelDialog *this) static void gl_new_label_dialog_finalize (GObject *object) { - glNewLabelDialog* this = GL_NEW_LABEL_DIALOG (object);; - - gl_debug (DEBUG_FILE, "START"); + glNewLabelDialog* this = GL_NEW_LABEL_DIALOG (object);; + + gl_debug (DEBUG_FILE, "START"); - g_return_if_fail (object != NULL); - g_return_if_fail (GL_IS_NEW_LABEL_DIALOG (this)); - g_return_if_fail (this->priv != NULL); + g_return_if_fail (object != NULL); + g_return_if_fail (GL_IS_NEW_LABEL_DIALOG (this)); + g_return_if_fail (this->priv != NULL); g_object_unref (G_OBJECT (this->priv->builder)); - g_free (this->priv); + g_free (this->priv); - G_OBJECT_CLASS (gl_new_label_dialog_parent_class)->finalize (object); + G_OBJECT_CLASS (gl_new_label_dialog_parent_class)->finalize (object); - gl_debug (DEBUG_FILE, "END"); + gl_debug (DEBUG_FILE, "END"); } @@ -282,15 +290,15 @@ gl_new_label_dialog_finalize (GObject *object) GtkWidget * gl_new_label_dialog_new (GtkWindow *win) { - GtkWidget *this; + GtkWidget *this; - gl_debug (DEBUG_FILE, ""); + gl_debug (DEBUG_FILE, ""); - this = GTK_WIDGET (g_object_new (GL_TYPE_NEW_LABEL_DIALOG, NULL)); + this = GTK_WIDGET (g_object_new (GL_TYPE_NEW_LABEL_DIALOG, NULL)); - gtk_window_set_transient_for (GTK_WINDOW (this), win); + gtk_window_set_transient_for (GTK_WINDOW (this), win); - return this; + return this; } @@ -343,7 +351,7 @@ static void cancel_cb (glNewLabelDialog *this) { - gtk_widget_destroy (GTK_WIDGET(this)); + gtk_widget_destroy (GTK_WIDGET(this)); } @@ -367,7 +375,7 @@ static void close_cb (glNewLabelDialog *this) { - gtk_widget_destroy (GTK_WIDGET(this)); + gtk_widget_destroy (GTK_WIDGET(this)); } @@ -378,24 +386,24 @@ close_cb (glNewLabelDialog *this) static void combo_changed_cb (glNewLabelDialog *this) { - gchar *name; + gchar *name; - gl_debug (DEBUG_FILE, "START"); + gl_debug (DEBUG_FILE, "START"); - name = gl_media_select_get_name (GL_MEDIA_SELECT (this->priv->combo)); + name = gl_media_select_get_name (GL_MEDIA_SELECT (this->priv->combo)); gl_mini_label_preview_set_by_name (GL_MINI_LABEL_PREVIEW (this->priv->normal_preview), name, FALSE); gl_mini_label_preview_set_by_name (GL_MINI_LABEL_PREVIEW (this->priv->rotated_preview), name, TRUE); gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON (this->priv->normal_radio), TRUE); - gl_mini_preview_set_by_name (GL_MINI_PREVIEW (this->priv->preview), name); + gl_mini_preview_set_by_name (GL_MINI_PREVIEW (this->priv->preview), name); set_info (this, name); gtk_assistant_set_page_complete (GTK_ASSISTANT (this), this->priv->template_page_vbox, (name != NULL)); - g_free (name); + g_free (name); - gl_debug (DEBUG_FILE, "END"); + gl_debug (DEBUG_FILE, "END"); } @@ -407,12 +415,12 @@ rotate_toggled_cb (glNewLabelDialog *this) { gboolean state; - gl_debug (DEBUG_FILE, "START"); + gl_debug (DEBUG_FILE, "START"); state = gtk_toggle_button_get_active (GTK_TOGGLE_BUTTON (this->priv->rotated_radio)); gl_mini_preview_set_rotate (GL_MINI_PREVIEW (this->priv->preview), state); - gl_debug (DEBUG_FILE, "END"); + gl_debug (DEBUG_FILE, "END"); } @@ -509,11 +517,11 @@ set_info (glNewLabelDialog *this, gchar * gl_new_label_dialog_get_template_name (glNewLabelDialog *this) { - gchar *name; + gchar *name; - name = gl_media_select_get_name (GL_MEDIA_SELECT (this->priv->combo)); + name = gl_media_select_get_name (GL_MEDIA_SELECT (this->priv->combo)); - return name; + return name; } @@ -522,10 +530,10 @@ gl_new_label_dialog_get_template_name (glNewLabelDialog *this) /*****************************************************************************/ void gl_new_label_dialog_set_template_name (glNewLabelDialog *this, - gchar *name) + gchar *name) { - gl_mini_preview_set_by_name (GL_MINI_PREVIEW (this->priv->preview), name); - gl_media_select_set_name (GL_MEDIA_SELECT (this->priv->combo), name); + gl_mini_preview_set_by_name (GL_MINI_PREVIEW (this->priv->preview), name); + gl_media_select_set_name (GL_MEDIA_SELECT (this->priv->combo), name); set_info (this, name); } @@ -535,8 +543,8 @@ gl_new_label_dialog_set_template_name (glNewLabelDialog *this, /*****************************************************************************/ void gl_new_label_dialog_get_filter_parameters (glNewLabelDialog *this, - gchar **page_size_id, - gchar **category_id) + gchar **page_size_id, + gchar **category_id) { } @@ -546,8 +554,8 @@ gl_new_label_dialog_get_filter_parameters (glNewLabelDialog *this, /*****************************************************************************/ void gl_new_label_dialog_set_filter_parameters (glNewLabelDialog *this, - const gchar *page_size_id, - const gchar *category_id) + const gchar *page_size_id, + const gchar *category_id) { } @@ -558,7 +566,7 @@ gl_new_label_dialog_set_filter_parameters (glNewLabelDialog *this, gboolean gl_new_label_dialog_get_rotate_state (glNewLabelDialog *this) { - return gtk_toggle_button_get_active (GTK_TOGGLE_BUTTON (this->priv->rotated_radio)); + return gtk_toggle_button_get_active (GTK_TOGGLE_BUTTON (this->priv->rotated_radio)); } @@ -567,7 +575,7 @@ gl_new_label_dialog_get_rotate_state (glNewLabelDialog *this) /*****************************************************************************/ void gl_new_label_dialog_set_rotate_state (glNewLabelDialog *this, - gboolean state) + gboolean state) { gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON (this->priv->rotated_radio), state); gl_mini_preview_set_rotate (GL_MINI_PREVIEW (this->priv->preview), state); -- 2.39.5