Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 124173 | Differences between
and this patch

Collapse All | Expand All

(-)kerry-0.09/src/beaglesearch.cpp (-1 / +7 lines)
Lines 83-88 Link Here
83
       { BeagleSearch::Website, "dc:title", 0 },
83
       { BeagleSearch::Website, "dc:title", 0 },
84
       { BeagleSearch::Website, "Title", 0 },
84
       { BeagleSearch::Website, "Title", 0 },
85
       { BeagleSearch::Note, "dc:title", 0 },
85
       { BeagleSearch::Note, "dc:title", 0 },
86
// Gentoo ebuilds
87
       { BeagleSearch::Ebuilds, "dc:title", I18N_NOOP("Title: %1")"<br>" },
88
       { BeagleSearch::Ebuilds, "dc:description", I18N_NOOP("Description: %1")"<br>" },
89
       { BeagleSearch::Ebuilds, "fixme:version", I18N_NOOP("Version: %1")"<br>" },
90
       { BeagleSearch::Ebuilds, "dc:source", I18N_NOOP("Homepage: %1")"<br>" },
86
       { BeagleSearch::Unknown, "dc:author", I18N_NOOP("Author: %1")"<br>" },
91
       { BeagleSearch::Unknown, "dc:author", I18N_NOOP("Author: %1")"<br>" },
87
       { BeagleSearch::Unknown, "dc:title", I18N_NOOP("Title: %1")"<br>" },
92
       { BeagleSearch::Unknown, "dc:title", I18N_NOOP("Title: %1")"<br>" },
88
// Calendar
93
// Calendar
Lines 148-153 Link Here
148
       { BeagleSearch::Website, 0, "Google", 0 },
153
       { BeagleSearch::Website, 0, "Google", 0 },
149
       { BeagleSearch::Website, 0, "WebHistory", 0 },
154
       { BeagleSearch::Website, 0, "WebHistory", 0 },
150
       { BeagleSearch::Website, 0, 0, "beagle/x-konq-cache" },
155
       { BeagleSearch::Website, 0, 0, "beagle/x-konq-cache" },
156
       { BeagleSearch::Ebuilds, "*.ebuild", 0, 0 },
151
       { BeagleSearch::Unknown, "file://", "File", 0 },  // mimetype wildcard must be last
157
       { BeagleSearch::Unknown, "file://", "File", 0 },  // mimetype wildcard must be last
152
       { 0, 0, 0, 0}
158
       { 0, 0, 0, 0}
153
};
159
};
Lines 330-336 Link Here
330
#endif
336
#endif
331
337
332
		for( uint i = 0; hitflavorinfos[i].tilegroup!=0; i++ ) {
338
		for( uint i = 0; hitflavorinfos[i].tilegroup!=0; i++ ) {
333
			if( (hitflavorinfos[i].uri == 0 || (*(result->uri)).startsWith(hitflavorinfos[i].uri)) &&
339
			if( (hitflavorinfos[i].uri == 0 || (*(result->uri)).startsWith(hitflavorinfos[i].uri) || (hitflavorinfos[i].uri[0]=='*' && (*(result->uri)).endsWith(hitflavorinfos[i].uri+1))) &&
334
			    (hitflavorinfos[i].type == 0 || hitflavorinfos[i].type==result->hit_type) &&
340
			    (hitflavorinfos[i].type == 0 || hitflavorinfos[i].type==result->hit_type) &&
335
			    (hitflavorinfos[i].mimetype == 0 || (*(result->mime_type)).startsWith(hitflavorinfos[i].mimetype))) {
341
			    (hitflavorinfos[i].mimetype == 0 || (*(result->mime_type)).startsWith(hitflavorinfos[i].mimetype))) {
336
				result->tilegroup = (TileGroup)hitflavorinfos[i].tilegroup;
342
				result->tilegroup = (TileGroup)hitflavorinfos[i].tilegroup;
(-)kerry-0.09/src/beaglesearch.h (-1 / +2 lines)
Lines 51-57 Link Here
51
	Conversations,  // in combo box
51
	Conversations,  // in combo box
52
	Website,        // in combo box
52
	Website,        // in combo box
53
	Feed,
53
	Feed,
54
	Note
54
	Note,
55
	Ebuilds
55
};
56
};
56
57
57
typedef QValueList<QString> PropertyList;
58
typedef QValueList<QString> PropertyList;
(-)kerry-0.09/src/searchdlg.cpp (+3 lines)
Lines 669-674 Link Here
669
          case Website:
669
          case Website:
670
		show = ( result->tilegroup == BeagleSearch::Website);
670
		show = ( result->tilegroup == BeagleSearch::Website);
671
		break;
671
		break;
672
          case Ebuilds:
673
		show = ( result->tilegroup == BeagleSearch::Ebuilds);
674
		break;
672
          default:
675
          default:
673
		break;
676
		break;
674
        }
677
        }
(-)kerry-0.09/src/searchdlg.h (-1 / +2 lines)
Lines 42-48 Link Here
42
		Conversations,
42
		Conversations,
43
		Images,
43
		Images,
44
		Media,
44
		Media,
45
                Website
45
                Website,
46
		Ebuilds
46
	};
47
	};
47
48
48
	enum SortType {
49
	enum SortType {
(-)kerry-0.09/src/searchdlg_layout.ui (+5 lines)
Lines 250-255 Link Here
250
                            <string>Web Pages</string>
250
                            <string>Web Pages</string>
251
                        </property>
251
                        </property>
252
		    </item>
252
		    </item>
253
                    <item>
254
                        <property name="text">
255
                            <string>Ebuilds</string>
256
                        </property>
257
		    </item>
253
                    <property name="name">
258
                    <property name="name">
254
                        <cstring>comboShow</cstring>
259
                        <cstring>comboShow</cstring>
255
                    </property>
260
                    </property>

Return to bug 124173