~tristan957/tllt-cp

c5b55d88f46c79b2a88f93284d236fd446727c93 — Tristan Partin 1 year, 6 months ago f12202e
GtkMessageDialog -> GtkDialog
M data/ui/tllt-cp-feedback-dialog.ui => data/ui/tllt-cp-feedback-dialog.ui +44 -9
@@ 2,15 2,17 @@
<!-- Generated with glade 3.22.1 -->
<interface>
  <requires lib="gtk+" version="3.20"/>
  <template class="TlltCpFeedbackDialog" parent="GtkMessageDialog">
  <template class="TlltCpFeedbackDialog" parent="GtkDialog">
    <property name="can_focus">False</property>
    <property name="modal">True</property>
    <property name="window_position">center-on-parent</property>
    <property name="border_width">5</property>
    <property name="type_hint">dialog</property>
    <property name="skip_taskbar_hint">True</property>
    <property name="skip_pager_hint">True</property>
    <property name="message_type">question</property>
    <property name="text" translatable="yes">How would you like future recipes to turn out?</property>
    <child type="titlebar">
      <object class="GtkHeaderBar">
        <property name="visible">True</property>
        <property name="can_focus">False</property>
        <property name="title" translatable="yes">User Feedback</property>
      </object>
    </child>
    <child internal-child="vbox">
      <object class="GtkBox">
        <property name="can_focus">False</property>


@@ 19,8 21,6 @@
        <child internal-child="action_area">
          <object class="GtkButtonBox">
            <property name="can_focus">False</property>
            <property name="margin_top">15</property>
            <property name="homogeneous">True</property>
            <property name="layout_style">expand</property>
            <child>
              <object class="GtkButton">


@@ 74,6 74,41 @@
            <property name="position">0</property>
          </packing>
        </child>
        <child>
          <object class="GtkBox">
            <property name="visible">True</property>
            <property name="can_focus">False</property>
            <property name="valign">center</property>
            <property name="vexpand">True</property>
            <property name="orientation">vertical</property>
            <child>
              <object class="GtkLabel">
                <property name="visible">True</property>
                <property name="can_focus">False</property>
                <property name="valign">center</property>
                <property name="margin_left">15</property>
                <property name="margin_right">15</property>
                <property name="margin_top">15</property>
                <property name="margin_bottom">15</property>
                <property name="vexpand">True</property>
                <property name="label" translatable="yes">How would you like future recipes to turn out?</property>
                <attributes>
                  <attribute name="scale" value="1.2"/>
                </attributes>
              </object>
              <packing>
                <property name="expand">False</property>
                <property name="fill">True</property>
                <property name="position">0</property>
              </packing>
            </child>
          </object>
          <packing>
            <property name="expand">False</property>
            <property name="fill">True</property>
            <property name="position">1</property>
          </packing>
        </child>
      </object>
    </child>
  </template>

M src/tllt-cp-feedback-dialog.c => src/tllt-cp-feedback-dialog.c +2 -2
@@ 7,7 7,7 @@

struct _TlltCpFeedbackDialog
{
	GtkMessageDialog parent_instance;
	GtkDialog parent_instance;
};

typedef struct TlltCpFeedbackDialogPrivate


@@ 16,7 16,7 @@ typedef struct TlltCpFeedbackDialogPrivate
	TlltCpClient *client;
} TlltCpFeedbackDialogPrivate;

G_DEFINE_TYPE_WITH_PRIVATE(TlltCpFeedbackDialog, tllt_cp_feedback_dialog, GTK_TYPE_MESSAGE_DIALOG)
G_DEFINE_TYPE_WITH_PRIVATE(TlltCpFeedbackDialog, tllt_cp_feedback_dialog, GTK_TYPE_DIALOG)

typedef enum TlltCpFeedbackDialogProps
{

M src/tllt-cp-feedback-dialog.h => src/tllt-cp-feedback-dialog.h +1 -1
@@ 9,7 9,7 @@ G_BEGIN_DECLS

#define TLLT_CP_TYPE_FEEDBACK_DIALOG (tllt_cp_feedback_dialog_get_type())
G_DECLARE_FINAL_TYPE(TlltCpFeedbackDialog, tllt_cp_feedback_dialog, TLLT_CP, FEEDBACK_DIALOG,
					 GtkMessageDialog)
					 GtkDialog)

TlltCpFeedbackDialog *tllt_cp_feedback_dialog_new(GtkWindow *parent, TlltCpUser *user,
												  TlltCpClient *client);