]> Pileus Git - ~andy/gtk/blobdiff - gtk/gtkentryprivate.h
GtkTextView: don't popdown a bubble if we don't have one
[~andy/gtk] / gtk / gtkentryprivate.h
index 657595e5a8c2d85f37812b0d50fa3d026c48dffd..0cc825a40591f7801f20ff63b7addb70c68ad32a 100644 (file)
@@ -12,9 +12,7 @@
  * 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_ENTRY_PRIVATE_H__
@@ -24,6 +22,7 @@
 #include <gtk/gtktreemodelfilter.h>
 #include <gtk/gtkliststore.h>
 #include <gtk/gtkentrycompletion.h>
+#include <gtk/gtkentry.h>
 
 G_BEGIN_DECLS
 
@@ -36,6 +35,7 @@ struct _GtkEntryCompletionPrivate
   GtkTreeModelFilter *filter_model;
   GtkListStore *actions;
   gboolean first_sel_changed;
+  GtkCellArea *cell_area;
 
   GtkEntryCompletionMatchFunc match_func;
   gpointer match_data;
@@ -55,11 +55,39 @@ struct _GtkEntryCompletionPrivate
 
   gulong completion_timeout;
   gulong changed_id;
-  gulong key_press_id;
+  gulong insert_text_id;
+
+  guint ignore_enter      : 1;
+  guint has_completion    : 1;
+  guint inline_completion : 1;
+  guint popup_completion  : 1;
+  guint popup_set_width   : 1;
+  guint popup_single_match : 1;
+  guint inline_selection   : 1;
+  guint has_grab           : 1;
+
+  gchar *completion_prefix;
+
+  GSource *check_completion_idle;
+
+  GdkDevice *device;
 };
 
-void                _gtk_entry_completion_popup                  (GtkEntryCompletion          *completion);
-void                _gtk_entry_completion_popdown                (GtkEntryCompletion          *completion);
+gboolean _gtk_entry_completion_resize_popup (GtkEntryCompletion *completion);
+void     _gtk_entry_completion_popdown      (GtkEntryCompletion *completion);
+void     _gtk_entry_completion_connect      (GtkEntryCompletion *completion,
+                                             GtkEntry           *entry);
+void     _gtk_entry_completion_disconnect   (GtkEntryCompletion *completion);
+
+gchar*   _gtk_entry_get_display_text       (GtkEntry *entry,
+                                            gint      start_pos,
+                                            gint      end_pos);
+void     _gtk_entry_get_borders            (GtkEntry  *entry,
+                                            GtkBorder *borders);
+GtkIMContext* _gtk_entry_get_im_context    (GtkEntry  *entry);
+void     _gtk_entry_set_is_cell_renderer   (GtkEntry  *entry,
+                                            gboolean   is_cell_renderer);
+
 
 G_END_DECLS