unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
blob 7b779d1713b31dfdd89fd2683095b56d36343a72 2922 bytes (raw)
name: src/gtkinter.h 	 # note: path name is non-authoritative(*)

  1
  2
  3
  4
  5
  6
  7
  8
  9
 10
 11
 12
 13
 14
 15
 16
 17
 18
 19
 20
 21
 22
 23
 24
 25
 26
 27
 28
 29
 30
 31
 32
 33
 34
 35
 36
 37
 38
 39
 40
 41
 42
 43
 44
 45
 46
 47
 48
 49
 50
 51
 52
 53
 54
 55
 56
 57
 58
 59
 60
 61
 62
 63
 64
 65
 66
 67
 68
 69
 70
 71
 72
 73
 74
 75
 76
 77
 78
 79
 80
 81
 82
 83
 84
 85
 86
 87
 88
 89
 90
 91
 92
 93
 94
 95
 96
 97
 98
 99
100
101
102
103
104
105
106
107
108
109
 
/* GTK related routines

   Copyright (C) 2020 Free Software Foundation, Inc.

   This file is part of GNU Emacs.

   GNU Emacs is free software: you can redistribute it and/or modify
   it under the terms of the GNU General Public License as published by
   the Free Software Foundation, either version 3 of the License, or (at
   your option) any later version.

   GNU Emacs is distributed in the hope that it will be useful,
   but WITHOUT ANY WARRANTY; without even the implied warranty of
   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
   GNU General Public License for more details.

   You should have received a copy of the GNU General Public License
   along with GNU Emacs.  If not, see <https://www.gnu.org/licenses/>.  */

#ifndef GTK_INTER_H
#define GTK_INTER_H

#include "config.h"

#include <gtk/gtk.h>

#include "lisp.h"
#ifdef HAVE_GTK4
#include "pgtksubr.h"
#else
#include "gtkutil.h"
#endif
#include "frame.h"

#ifdef HAVE_GTK3

typedef struct
{
  struct frame *f;
  int index;
} xg_headerbar_item_callback_info;

#endif

extern GtkAboutDialog *
show_about_dialog (gpointer thing, struct frame *f);

extern void syms_of_gtkinter (void);

extern GtkDialog *
#ifndef HAVE_GTK4
build_dialog_n_items (char *fmt,
		      widget_value *wv,
		      GCallback select_cb,
                      GCallback deactivate_cb,
		      GCallback dialog_delete_callback);
#else
build_dialog_n_items (char *fmt,
		      widget_value *wv,
		      GCallback select_cb,
                      GCallback deactivate_cb);
#endif
#ifndef HAVE_GTK4
extern GtkDialog *
build_dialog_3_items (Lisp_Object fmt, Lisp_Object name_a, Lisp_Object name_b,
                      Lisp_Object name_c, GCallback select_cb,
                      GCallback deactivate_cb, widget_value *wv_a,
                      widget_value *wv_b, widget_value *wv_c,
                      GCallback dialog_delete_callback);

extern GtkMessageDialog *
build_dialog_2_items (Lisp_Object fmt, Lisp_Object name_a,
                      Lisp_Object name_b, GCallback select_cb,
                      GCallback deactivate_cb, widget_value *wv_a,
		      widget_value *wv_b, GCallback dialog_delete_callback);

extern GtkMessageDialog *
build_dialog_1_item (Lisp_Object fmt, Lisp_Object name_a,
		     GCallback select_cb,
		     GCallback deactivate_cb, widget_value *wv_a,
		     GCallback dialog_delete_callback);
#endif
#ifdef HAVE_GTK3

extern void update_frame_header_bar (struct frame *f);

extern void
xg_notify_header_bar_menu_state_changed (struct frame *f);

extern void
xg_modify_header_bar_widgets (GtkHeaderBar *w, struct frame *f,
			      widget_value *val, bool deep_p,
			      GCallback select_cb, GCallback deactivate_cb,
			      GCallback highlight_cb);

struct xg_tool_bar_entry
{
  Lisp_Object title;
  Lisp_Object help;
  Lisp_Object icon;
  bool enabled;
  bool selected;
  Lisp_Object type;
  int idx;
};

#endif

#endif

debug log:

solving 7b779d1713 ...
found 7b779d1713 in https://yhetil.org/emacs-devel/87zhaxjpea.fsf@yahoo.com/

applying [1/1] https://yhetil.org/emacs-devel/87zhaxjpea.fsf@yahoo.com/
diff --git a/src/gtkinter.h b/src/gtkinter.h
new file mode 100644
index 0000000000..7b779d1713

Checking patch src/gtkinter.h...
Applied patch src/gtkinter.h cleanly.

index at:
100644 7b779d1713b31dfdd89fd2683095b56d36343a72	src/gtkinter.h

(*) Git path names are given by the tree(s) the blob belongs to.
    Blobs themselves have no identifier aside from the hash of its contents.^

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).