summary refs log tree commit diff stats
path: root/win32/copy/etc/gtk-2.0/gtkrc
blob: 6ac7b76cd67dc7d792072dfbe8f92e3fbcf58770 (plain) (blame)
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
gtk-font-name = "sans 8"

gtk-icon-sizes = "gtk-menu=13,13:gtk-small-toolbar=16,16:gtk-large-toolbar=24,24:gtk-dnd=32,32"
gtk-toolbar-icon-size = small-toolbar

# disable images in buttons. i've only seen ugly delphi apps use this feature.
gtk-button-images = 0

# enable/disable images in menus. most "stock" microsoft apps don't use these, except sparingly.
# the office apps use them heavily, though.
gtk-menu-images = 1

# use the win32 button ordering instead of the GNOME HIG one, where applicable
gtk-alternative-button-order = 1

# use the win32 sort indicators direction, as in Explorer
gtk-alternative-sort-arrows = 1

# Windows users don't expect the PC Speaker beeping at them when they backspace in an empty textview and stuff like that
gtk-error-bell = 0

# hide mnemonic underlines until the Alt key is pressed (requires gtk 2.18+)
# gtk-auto-mnemonics = 1

style "msw-default"
{
  GtkWidget::interior-focus = 1
  GtkOptionMenu::indicator-size = { 9, 5 }
  GtkOptionMenu::indicator-spacing = { 7, 5, 2, 2 }
  GtkSpinButton::shadow-type = in

  # Owen and I disagree that these should be themable
  #GtkUIManager::add-tearoffs = 0
  #GtkComboBox::add-tearoffs = 0

  GtkComboBox::appears-as-list = 1
  GtkComboBox::focus-on-click = 0

  GOComboBox::add_tearoffs = 0

  GtkTreeView::allow-rules = 0
  GtkTreeView::expander-size = 12

  GtkExpander::expander-size = 12

  GtkScrolledWindow::scrollbar_spacing = 1

  GtkSeparatorMenuItem::horizontal-padding = 2

  engine "wimp"
  {
  }
}
class "*" style "msw-default"

binding "ms-windows-tree-view"
{
  bind "Right" { "expand-collapse-cursor-row" (1,1,0) }
  bind "Left" { "expand-collapse-cursor-row" (1,0,0) }
}

class "GtkTreeView" binding "ms-windows-tree-view"

style "msw-combobox-thickness" = "msw-default"
{
  xthickness = 0
  ythickness = 0
}

widget_class "*TreeView*ComboBox*" style "msw-combobox-thickness"
widget_class "*ComboBox*GtkFrame*" style "msw-combobox-thickness"
an class="w"> <time.h> /* for time_t */ #include "proto-irc.h" #ifndef HEXCHAT_DCC_H #define HEXCHAT_DCC_H enum dcc_state { STAT_QUEUED = 0, STAT_ACTIVE, STAT_FAILED, STAT_DONE, STAT_CONNECTING, STAT_ABORTED }; enum dcc_type { TYPE_SEND = 0, TYPE_RECV, TYPE_CHATRECV, TYPE_CHATSEND }; #define CPS_AVG_WINDOW 10 struct DCC { struct server *serv; struct dcc_chat *dccchat; struct proxy_state *proxy; guint32 addr; /* the 32bit IP number, host byte order */ int fp; /* file pointer */ int sok; int iotag; /* reading io tag */ int wiotag; /* writing/sending io tag */ int port; int pasvid; /* mIRC's passive DCC id */ gint64 cps; int resume_error; int resume_errno; GTimeVal lastcpstv, firstcpstv; goffset lastcpspos; gint64 maxcps; unsigned char ack_buf[4]; /* buffer for reading 4-byte ack */ int ack_pos; guint64 size; guint64 resumable; guint64 ack; guint64 pos; time_t starttime; time_t offertime; time_t lasttime; char *file; /* utf8 */ char *destfile; /* utf8 */ char *nick; enum dcc_type type; enum dcc_state dccstat; unsigned int resume_sent:1; /* resume request sent */ unsigned int fastsend:1; unsigned int ackoffset:1; /* is receiver sending acks as an offset from */ /* the resume point? */ unsigned int throttled:2; /* 0x1 = per send/get throttle 0x2 = global throttle */ }; #define MAX_PROXY_BUFFER 1024 struct proxy_state { int phase; unsigned char buffer[MAX_PROXY_BUFFER]; int buffersize; int bufferused; }; struct dcc_chat { char linebuf[2048]; int pos; }; struct dccstat_info { char *name; /* Display name */ int color; /* Display color (index into colors[] ) */ }; extern struct dccstat_info dccstat[]; gboolean is_dcc (struct DCC *dcc); gboolean is_dcc_completed (struct DCC *dcc); void dcc_abort (session *sess, struct DCC *dcc); void dcc_get (struct DCC *dcc); int dcc_resume (struct DCC *dcc); void dcc_change_nick (server *serv, char *oldnick, char *newnick); void dcc_notify_kill (struct server *serv); struct DCC *dcc_write_chat (char *nick, char *text); void dcc_send (struct session *sess, char *to, char *file, gint64 maxcps, int passive); struct DCC *find_dcc (char *nick, char *file, int type); void dcc_get_nick (struct session *sess, char *nick); void dcc_chat (session *sess, char *nick, int passive); void handle_dcc (session *sess, char *nick, char *word[], char *word_eol[], const message_tags_data *tags_data); void dcc_show_list (session *sess); guint32 dcc_get_my_address (session *sess); void dcc_get_with_destfile (struct DCC *dcc, char *utf8file); #endif