|
Lines 4-15
Link Here
|
| 4 |
#include <gdk/gdk.h> |
4 |
#include <gdk/gdk.h> |
| 5 |
#include <gtk/gtk.h> |
5 |
#include <gtk/gtk.h> |
| 6 |
#include <glib/glist.h> |
6 |
#include <glib/glist.h> |
| 7 |
|
|
|
| 8 |
#ifdef HAVE_BONOBO |
| 9 |
#include <libbonobo.h> |
| 10 |
#include <libbonoboui.h> |
| 11 |
#endif |
| 12 |
|
| 13 |
#include <gdk-pixbuf/gdk-pixbuf.h> |
7 |
#include <gdk-pixbuf/gdk-pixbuf.h> |
| 14 |
|
8 |
|
| 15 |
#include "qt_style.h" |
9 |
#include "qt_style.h" |
|
Lines 609-616
Link Here
|
| 609 |
gint width, |
603 |
gint width, |
| 610 |
gint height) |
604 |
gint height) |
| 611 |
{ |
605 |
{ |
| 612 |
GList *child1; |
606 |
GList *child_list; |
| 613 |
GtkWidget *child; |
607 |
GtkWidget *child; |
|
|
608 |
|
| 614 |
GtkNotebook *nb; |
609 |
GtkNotebook *nb; |
| 615 |
int nbpages; |
610 |
int nbpages; |
| 616 |
sanitize_size(window, &width, &height); |
611 |
sanitize_size(window, &width, &height); |
|
Lines 716-726
Link Here
|
| 716 |
{ |
711 |
{ |
| 717 |
if (GTK_IS_WIDGET(parent)) |
712 |
if (GTK_IS_WIDGET(parent)) |
| 718 |
{ |
713 |
{ |
| 719 |
#ifdef HAVE_BONOBO |
|
|
| 720 |
if (GTK_IS_TOOLBAR(parent) || BONOBO_IS_UI_TOOLBAR(parent)) |
| 721 |
#else |
| 722 |
if (GTK_IS_TOOLBAR(parent)) |
714 |
if (GTK_IS_TOOLBAR(parent)) |
| 723 |
#endif |
|
|
| 724 |
{ |
715 |
{ |
| 725 |
toolbutton = 1; |
716 |
toolbutton = 1; |
| 726 |
break; |
717 |
break; |
|
Lines 746-761
Link Here
|
| 746 |
|
737 |
|
| 747 |
if (isBaghira && GTK_IS_BOX(parent) && (g_list_length(GTK_BOX(parent)->children) == 2)) |
738 |
if (isBaghira && GTK_IS_BOX(parent) && (g_list_length(GTK_BOX(parent)->children) == 2)) |
| 748 |
{ |
739 |
{ |
| 749 |
child1 = g_list_first((GTK_BOX(parent)->children)); |
740 |
child_list = g_list_first((GTK_BOX(parent)->children)); |
| 750 |
child = ((GtkBoxChild *)child1->data)->widget; |
741 |
child = (GtkWidget *)child_list->data; |
| 751 |
if (GTK_IS_ENTRY(child)) |
742 |
if (GTK_IS_ENTRY(child)) |
| 752 |
{ |
743 |
{ |
| 753 |
drawSquareButton(window,style,state_type,x,y,width,height); |
744 |
drawSquareButton(window,style,state_type,x,y,width,height); |
| 754 |
return; |
745 |
return; |
| 755 |
} |
746 |
} |
| 756 |
|
747 |
|
| 757 |
child1 = g_list_last((GTK_BOX(parent)->children)); |
748 |
child_list = g_list_last((GTK_BOX(parent)->children)); |
| 758 |
child = ((GtkBoxChild *)child1->data)->widget; |
749 |
child = ((GtkBoxChild *)child_list->data)->widget; |
| 759 |
if (GTK_IS_ENTRY(child)) |
750 |
if (GTK_IS_ENTRY(child)) |
| 760 |
{ |
751 |
{ |
| 761 |
drawSquareButton(window,style,state_type,x,y,width,height); |
752 |
drawSquareButton(window,style,state_type,x,y,width,height); |