~tristan957/tllt-cp

b5ebdb59e4b651db5ee8bd135f2a2a1cf0826c23 — Tristan Partin 1 year, 6 months ago 0a6d21f
Remove the UI elements that don't do anything
3 files changed, 17 insertions(+), 19 deletions(-)

M data/ui/tllt-cp-recipe-list-item.ui
M data/ui/tllt-cp-window.ui
M src/tllt-cp-window.c
M data/ui/tllt-cp-recipe-list-item.ui => data/ui/tllt-cp-recipe-list-item.ui +0 -1
@@ 121,7 121,6 @@
    </child>
    <child>
      <object class="GtkMenuButton">
        <property name="visible">True</property>
        <property name="can_focus">True</property>
        <property name="receives_default">True</property>
        <property name="halign">center</property>

M data/ui/tllt-cp-window.ui => data/ui/tllt-cp-window.ui +16 -17
@@ 217,16 217,18 @@ Author: Tristan Partin
          </object>
        </child>
        <child>
          <object class="GtkButton">
            <property name="label" translatable="yes">Login</property>
          <object class="GtkMenuButton">
            <property name="visible">True</property>
            <property name="can_focus">True</property>
            <property name="receives_default">True</property>
            <property name="tooltip_text" translatable="yes">Login or create an account</property>
            <signal name="clicked" handler="on_login_button_clicked" object="TlltCpWindow" swapped="no"/>
            <style>
              <class name="suggested-action"/>
            </style>
            <property name="popover">menu_popover</property>
            <child>
              <object class="GtkImage">
                <property name="visible">True</property>
                <property name="can_focus">False</property>
                <property name="icon_name">open-menu-symbolic</property>
              </object>
            </child>
          </object>
          <packing>
            <property name="pack_type">end</property>


@@ 234,18 236,16 @@ Author: Tristan Partin
          </packing>
        </child>
        <child>
          <object class="GtkMenuButton">
          <object class="GtkButton">
            <property name="label" translatable="yes">Login</property>
            <property name="visible">True</property>
            <property name="can_focus">True</property>
            <property name="receives_default">True</property>
            <property name="popover">menu_popover</property>
            <child>
              <object class="GtkImage">
                <property name="visible">True</property>
                <property name="can_focus">False</property>
                <property name="icon_name">open-menu-symbolic</property>
              </object>
            </child>
            <property name="tooltip_text" translatable="yes">Login or create an account</property>
            <signal name="clicked" handler="on_login_button_clicked" object="TlltCpWindow" swapped="no"/>
            <style>
              <class name="suggested-action"/>
            </style>
          </object>
          <packing>
            <property name="pack_type">end</property>


@@ 291,7 291,6 @@ Author: Tristan Partin
                    <child>
                      <object class="GtkButton">
                        <property name="label" translatable="yes">Details</property>
                        <property name="visible">True</property>
                        <property name="can_focus">True</property>
                        <property name="receives_default">True</property>
                        <property name="tooltip_text" translatable="yes">View details of the user</property>

M src/tllt-cp-window.c => src/tllt-cp-window.c +1 -1
@@ 298,7 298,7 @@ on_user_profiles_flow_box_child_activated(G_GNUC_UNUSED GtkFlowBox *widget, GtkF
}

static gboolean
on_heating_element_swtich_state_set(G_GNUC_UNUSED GtkSwitch *widget, gboolean state,
on_heating_element_swtich_state_set(G_GNUC_UNUSED GtkSwitch *widget, G_GNUC_UNUSED gboolean state,
									gpointer user_data)
{
	TlltCpWindow *self		  = TLLT_CP_WINDOW(user_data);