section: Remove row
This commit is contained in:
		@ -80,22 +80,6 @@ eek_section_real_add_row (EekSection    *self,
 | 
				
			|||||||
    priv->rows = g_slist_append (priv->rows, row);*/
 | 
					    priv->rows = g_slist_append (priv->rows, row);*/
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
static void
 | 
					 | 
				
			||||||
eek_section_real_get_row (EekSection     *self,
 | 
					 | 
				
			||||||
                          gint            index,
 | 
					 | 
				
			||||||
                          gint           *num_columns,
 | 
					 | 
				
			||||||
                          EekOrientation *orientation)
 | 
					 | 
				
			||||||
{
 | 
					 | 
				
			||||||
    EekSectionPrivate *priv = (EekSectionPrivate*)eek_section_get_instance_private (self);
 | 
					 | 
				
			||||||
    EekRow *row = &priv->row;
 | 
					 | 
				
			||||||
    if (num_columns) {
 | 
					 | 
				
			||||||
        *num_columns = row->num_columns;
 | 
					 | 
				
			||||||
    }
 | 
					 | 
				
			||||||
    if (orientation) {
 | 
					 | 
				
			||||||
        *orientation = row->orientation;
 | 
					 | 
				
			||||||
    }
 | 
					 | 
				
			||||||
}
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
static EekKey *
 | 
					static EekKey *
 | 
				
			||||||
eek_section_real_create_key (EekSection *self,
 | 
					eek_section_real_create_key (EekSection *self,
 | 
				
			||||||
                             const gchar *name,
 | 
					                             const gchar *name,
 | 
				
			||||||
@ -203,7 +187,6 @@ eek_section_class_init (EekSectionClass *klass)
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
    klass->get_n_rows = eek_section_real_get_n_rows;
 | 
					    klass->get_n_rows = eek_section_real_get_n_rows;
 | 
				
			||||||
    klass->add_row = eek_section_real_add_row;
 | 
					    klass->add_row = eek_section_real_add_row;
 | 
				
			||||||
    klass->get_row = eek_section_real_get_row;
 | 
					 | 
				
			||||||
    klass->create_key = eek_section_real_create_key;
 | 
					    klass->create_key = eek_section_real_create_key;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    /* signals */
 | 
					    /* signals */
 | 
				
			||||||
@ -305,28 +288,6 @@ eek_section_add_row (EekSection    *section,
 | 
				
			|||||||
                                             orientation);
 | 
					                                             orientation);
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
/**
 | 
					 | 
				
			||||||
 * eek_section_get_row:
 | 
					 | 
				
			||||||
 * @section: an #EekSection
 | 
					 | 
				
			||||||
 * @index: the index of row
 | 
					 | 
				
			||||||
 * @num_columns: pointer where the number of column in the row will be stored
 | 
					 | 
				
			||||||
 * @orientation: pointer where #EekOrientation of the row will be stored
 | 
					 | 
				
			||||||
 *
 | 
					 | 
				
			||||||
 * Get the information about the @index-th row in @section.
 | 
					 | 
				
			||||||
 */
 | 
					 | 
				
			||||||
void
 | 
					 | 
				
			||||||
eek_section_get_row (EekSection     *section,
 | 
					 | 
				
			||||||
                     gint            index,
 | 
					 | 
				
			||||||
                     gint           *num_columns,
 | 
					 | 
				
			||||||
                     EekOrientation *orientation)
 | 
					 | 
				
			||||||
{
 | 
					 | 
				
			||||||
    g_return_if_fail (EEK_IS_SECTION(section));
 | 
					 | 
				
			||||||
    EEK_SECTION_GET_CLASS(section)->get_row (section,
 | 
					 | 
				
			||||||
                                             index,
 | 
					 | 
				
			||||||
                                             num_columns,
 | 
					 | 
				
			||||||
                                             orientation);
 | 
					 | 
				
			||||||
}
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
/**
 | 
					/**
 | 
				
			||||||
 * eek_section_create_key:
 | 
					 * eek_section_create_key:
 | 
				
			||||||
 * @section: an #EekSection
 | 
					 * @section: an #EekSection
 | 
				
			||||||
 | 
				
			|||||||
@ -58,24 +58,12 @@ struct _EekSectionClass
 | 
				
			|||||||
    void    (* add_row)             (EekSection     *self,
 | 
					    void    (* add_row)             (EekSection     *self,
 | 
				
			||||||
                                     gint            num_columns,
 | 
					                                     gint            num_columns,
 | 
				
			||||||
                                     EekOrientation  orientation);
 | 
					                                     EekOrientation  orientation);
 | 
				
			||||||
    void    (* get_row)             (EekSection     *self,
 | 
					 | 
				
			||||||
                                     gint            index,
 | 
					 | 
				
			||||||
                                     gint           *num_columns,
 | 
					 | 
				
			||||||
                                     EekOrientation *orientation);
 | 
					 | 
				
			||||||
 | 
					
 | 
				
			||||||
    EekKey *(* create_key)          (EekSection     *self,
 | 
					    EekKey *(* create_key)          (EekSection     *self,
 | 
				
			||||||
                                     const gchar    *name,
 | 
					                                     const gchar    *name,
 | 
				
			||||||
                                     gint            keycode,
 | 
					                                     gint            keycode,
 | 
				
			||||||
                                     guint oref);
 | 
					                                     guint oref);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    /* signals */
 | 
					 | 
				
			||||||
    void    (* key_locked)          (EekSection     *self,
 | 
					 | 
				
			||||||
                                     EekKey         *key);
 | 
					 | 
				
			||||||
    void    (* key_unlocked)        (EekSection     *self,
 | 
					 | 
				
			||||||
                                     EekKey         *key);
 | 
					 | 
				
			||||||
    void    (* key_cancelled)       (EekSection     *self,
 | 
					 | 
				
			||||||
                                     EekKey         *key);
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
    /*< private >*/
 | 
					    /*< private >*/
 | 
				
			||||||
    /* padding */
 | 
					    /* padding */
 | 
				
			||||||
    gpointer pdummy[19];
 | 
					    gpointer pdummy[19];
 | 
				
			||||||
@ -91,11 +79,6 @@ gint    eek_section_get_n_rows           (EekSection     *section);
 | 
				
			|||||||
void    eek_section_add_row              (EekSection     *section,
 | 
					void    eek_section_add_row              (EekSection     *section,
 | 
				
			||||||
                                          gint            num_columns,
 | 
					                                          gint            num_columns,
 | 
				
			||||||
                                          EekOrientation  orientation);
 | 
					                                          EekOrientation  orientation);
 | 
				
			||||||
void    eek_section_get_row              (EekSection     *section,
 | 
					 | 
				
			||||||
                                          gint            index,
 | 
					 | 
				
			||||||
                                          gint           *num_columns,
 | 
					 | 
				
			||||||
                                          EekOrientation *orientation);
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
EekKey *eek_section_create_key           (EekSection     *section,
 | 
					EekKey *eek_section_create_key           (EekSection     *section,
 | 
				
			||||||
                                          const gchar    *name,
 | 
					                                          const gchar    *name,
 | 
				
			||||||
                                          guint keycode, guint oref);
 | 
					                                          guint keycode, guint oref);
 | 
				
			||||||
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user