some tooltips work -waiting for gtk 2.4
This commit is contained in:
		@ -1,7 +1,7 @@
 | 
				
			|||||||
2003-08-29  Dom Lachowicz <cinamod@hotmail.com>
 | 
					2003-08-29  Dom Lachowicz <cinamod@hotmail.com>
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	* src/*.c: Theme GTK toolbar arrows to XP chevrons, once my GTK patch is committed.
 | 
						* src/*.c: Theme GTK toolbar arrows to XP chevrons, once my GTK patch is committed.
 | 
				
			||||||
	* src/wimp_style.c: Enable proper fonts/sizes for menus, status bars. Tooltips are giving me grief, though.
 | 
						* src/wimp_style.c: Enable proper fonts/sizes for menus, status bars. Tooltips are waiting for my GTK patches, though.
 | 
				
			||||||
 | 
					
 | 
				
			||||||
2003-08-28  Dom Lachowicz <cinamod@hotmail.com>
 | 
					2003-08-28  Dom Lachowicz <cinamod@hotmail.com>
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
				
			|||||||
@ -305,24 +305,22 @@ setup_system_styles(GtkStyle *style)
 | 
				
			|||||||
          (font_ptr ? font_ptr : " font name should go here"));
 | 
					          (font_ptr ? font_ptr : " font name should go here"));
 | 
				
			||||||
  gtk_rc_parse_string(buf);
 | 
					  gtk_rc_parse_string(buf);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
#if 0
 | 
					  /* enable tooltip fonts - waiting for GTK 2.4 */
 | 
				
			||||||
  /* enable tooltip fonts */
 | 
					 | 
				
			||||||
  font_ptr = sys_font_to_pango_font (CAPTION_FONT,font_buf);
 | 
					  font_ptr = sys_font_to_pango_font (CAPTION_FONT,font_buf);
 | 
				
			||||||
  sprintf(buf, "style \"wimp-tooltip-font\"\n"
 | 
					  sprintf(buf, "style \"wimp-tooltips-caption\"\n"
 | 
				
			||||||
	  "{%s = \"%s\"\n"
 | 
					 | 
				
			||||||
	  "}widget_class \"*GtkWindow.GtkLabel*\" style \"wimp-tooltip-font\"\n",
 | 
					 | 
				
			||||||
          (font_ptr ? "font_name" : "#"),
 | 
					 | 
				
			||||||
          (font_ptr ? font_ptr : " font name should go here"));
 | 
					 | 
				
			||||||
  gtk_rc_parse_string(buf);
 | 
					 | 
				
			||||||
#endif
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
  sprintf(buf, "style \"wimp-tooltips\"\n"
 | 
					 | 
				
			||||||
	  "{fg[NORMAL] = { %d, %d, %d }\n"
 | 
						  "{fg[NORMAL] = { %d, %d, %d }\n"
 | 
				
			||||||
	  "bg[NORMAL] = { %d, %d, %d }\n"
 | 
						  "%s = \"%s\"\n"
 | 
				
			||||||
	  "}widget \"gtk-tooltips*\" style \"wimp-tooltips\"\n",
 | 
						  "}widget \"gtk-tooltips-caption*\" style \"wimp-tooltips-caption\"\n",
 | 
				
			||||||
          tooltip_fore.red,
 | 
					          tooltip_fore.red,
 | 
				
			||||||
          tooltip_fore.green,
 | 
					          tooltip_fore.green,
 | 
				
			||||||
          tooltip_fore.blue,
 | 
					          tooltip_fore.blue,
 | 
				
			||||||
 | 
					          (font_ptr ? "font_name" : "#"),
 | 
				
			||||||
 | 
					          (font_ptr ? font_ptr : " font name should go here"));
 | 
				
			||||||
 | 
					  gtk_rc_parse_string(buf);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					  sprintf(buf, "style \"wimp-tooltips\"\n"
 | 
				
			||||||
 | 
						  {"bg[NORMAL] = { %d, %d, %d }\n"
 | 
				
			||||||
 | 
						  "}widget \"gtk-tooltips*\" style \"wimp-tooltips\"\n",
 | 
				
			||||||
          tooltip_back.red,
 | 
					          tooltip_back.red,
 | 
				
			||||||
          tooltip_back.green,
 | 
					          tooltip_back.green,
 | 
				
			||||||
          tooltip_back.blue);
 | 
					          tooltip_back.blue);
 | 
				
			||||||
@ -846,6 +844,7 @@ draw_arrow (GtkStyle      *style,
 | 
				
			|||||||
    }
 | 
					    }
 | 
				
			||||||
  else
 | 
					  else
 | 
				
			||||||
    {
 | 
					    {
 | 
				
			||||||
 | 
					      /* draw the toolbar chevrons - waiting for GTK 2.4 */
 | 
				
			||||||
	  if (name && !strcmp (name, "gtk-toolbar-arrow"))
 | 
						  if (name && !strcmp (name, "gtk-toolbar-arrow"))
 | 
				
			||||||
	  {
 | 
						  {
 | 
				
			||||||
		  if (xp_theme_draw(window, XP_THEME_ELEMENT_CHEVRON, style, x, y, width, height, state))
 | 
							  if (xp_theme_draw(window, XP_THEME_ELEMENT_CHEVRON, style, x, y, width, height, state))
 | 
				
			||||||
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user