]> Pileus Git - ~andy/gtk/blobdiff - gtk/gtkcelleditable.h
filechooserbutton: Add a description string to assertions about emitted signals
[~andy/gtk] / gtk / gtkcelleditable.h
index da2710b9708d4ab4f0a88bdcd92ee968a683cc11..ae97d9ad7218f82ddf0b9452d10d1dca9ee58e8f 100644 (file)
  * Library General Public License for more details.
  *
  * You should have received a copy of the GNU Library General Public
- * License along with this library; if not, write to the
- * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
- * Boston, MA 02111-1307, USA.
+ * License along with this library. If not, see <http://www.gnu.org/licenses/>.
  */
 
 #ifndef __GTK_CELL_EDITABLE_H__
 #define __GTK_CELL_EDITABLE_H__
 
+#if !defined (__GTK_H_INSIDE__) && !defined (GTK_COMPILATION)
+#error "Only <gtk/gtk.h> can be included directly."
+#endif
+
 #include <gtk/gtkwidget.h>
 
 G_BEGIN_DECLS
@@ -28,7 +30,7 @@ G_BEGIN_DECLS
 #define GTK_CELL_EDITABLE(obj)            (G_TYPE_CHECK_INSTANCE_CAST ((obj), GTK_TYPE_CELL_EDITABLE, GtkCellEditable))
 #define GTK_CELL_EDITABLE_CLASS(obj)      (G_TYPE_CHECK_CLASS_CAST ((obj), GTK_TYPE_CELL_EDITABLE, GtkCellEditableIface))
 #define GTK_IS_CELL_EDITABLE(obj)         (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GTK_TYPE_CELL_EDITABLE))
-#define GTK_CELL_EDITABLE_GET_IFACE(obj)  ((GtkCellEditableIface *)g_type_interface_peek (((GTypeInstance *) GTK_CELL_EDITABLE (obj))->g_class, GTK_TYPE_CELL_EDITABLE))
+#define GTK_CELL_EDITABLE_GET_IFACE(obj)  (G_TYPE_INSTANCE_GET_INTERFACE ((obj), GTK_TYPE_CELL_EDITABLE, GtkCellEditableIface))
 
 typedef struct _GtkCellEditable      GtkCellEditable; /* Dummy typedef */
 typedef struct _GtkCellEditableIface GtkCellEditableIface;
@@ -44,7 +46,6 @@ struct _GtkCellEditableIface
   /* virtual table */
   void (* start_editing) (GtkCellEditable *cell_editable,
                          GdkEvent        *event);
-  void (* stop_editing)  (GtkCellEditable *cell_editable);
 };
 
 
@@ -52,7 +53,6 @@ GType gtk_cell_editable_get_type      (void) G_GNUC_CONST;
 
 void  gtk_cell_editable_start_editing (GtkCellEditable *cell_editable,
                                       GdkEvent        *event);
-void  gtk_cell_editable_stop_editing  (GtkCellEditable *cell_editable);
 void  gtk_cell_editable_editing_done  (GtkCellEditable *cell_editable);
 void  gtk_cell_editable_remove_widget (GtkCellEditable *cell_editable);